Wedge

Wedge.Wedge

Wedge object to keep track of analysers and detectors.

Wedge.Wedge.__init__

param - position

Position of wedge (default (0,0,0))

Wedge.Wedge.plot

Recursive plotting routine.

Wedge.Wedge.calculateDetectorAnalyserPositions

Find neutron position on analyser and detector.

Wedge Object and Methods

class Wedge.Wedge(position=(0.0, 0.0, 0.0), detectors=[], analysers=[], concept='ManyToMany', **kwargs)[source]

Wedge object to keep track of analysers and detectors. To be used as a storage object and facilitate easy movement of multiple detectors and analysers as once.

Parameters

position (-) – Position of wedge (default (0,0,0))

Kwargs:

  • detectors (list or single detector): Either a list or a single detector (default empty)

  • analysers (list or single analyser): Either a list or a single analyser (default empty)

  • concept (string “ManyToMany” or “OneToOne”): Setting to controle if there is a “one to one” correspondence between analysers and detectors or a “many to many” relationship.

Note

A wedge does not have a direction. The direction of analysers and detectors are to be set individually.

__init__(position=(0.0, 0.0, 0.0), detectors=[], analysers=[], concept='ManyToMany', **kwargs)[source]
Parameters

position (-) – Position of wedge (default (0,0,0))

Kwargs:

  • detectors (list or single detector): Either a list or a single detector (default empty)

  • analysers (list or single analyser): Either a list or a single analyser (default empty)

  • concept (string “ManyToMany” or “OneToOne”): Setting to controle if there is a “one to one” correspondence between analysers and detectors or a “many to many” relationship.

Note

A wedge does not have a direction. The direction of analysers and detectors are to be set individually.

append(Object)[source]

Append Object(s) to corresponding list.

Parameters

object (-) – Single detector/analyser of list of detectors/analysers

calculateDetectorAnalyserPositions()[source]

Find neutron position on analyser and detector. Assuming that the analyser is in the z=0 plane.

plot(ax, offset=(0, 0, 0))[source]

Recursive plotting routine.