Wedge¶
Wedge object to keep track of analysers and detectors. |
|
|
|
Recursive plotting routine. |
|
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