GeometryConcept

GeometryConcept.GeometryConcept

Abstract geometry concept.

GeometryConcept.GeometryConcept.__init__

GeometryConcept.GeometryConcept.plot

param - ax

3D matplotlib axis into which plotting is performed

GeometryConcept.GeometryObject

Physical geometry object on which other physical MJOLNIR components are build.

GeometryConcept.GeometryObject.__init__

Kwargs:

GeometryConcept Object and Methods

class GeometryConcept.GeometryConcept(position=(0, 0, 0))[source]

Abstract geometry concept. Used as base class for Wedge and Instrument.

__init__(position=(0, 0, 0))[source]
load(filename)[source]

Method to load an object from a pickled file.

plot(ax)[source]
Parameters

ax (-) – 3D matplotlib axis into which plotting is performed

Warning

Method not incorporated, but acts as virtual method.

property position

Kwargs:

  • Position (3vector): Position of object (default [0,0,0])

Raises
  • - AttributeError

  • - NotImplementedError

>>> GenericConcept = GeometryConcept(position=(0.0,1.0,0.0))
>>> print(GenericConcept.position)
(0.0,1.0,0.0)

GeometryObject Object and Methods

class GeometryConcept.GeometryObject(position=(0.0, 0.0, 0.0), direction=(0, 0, 1))[source]

Physical geometry object on which other physical MJOLNIR components are build. All of the components needed to create an instrument should inherit from this class in order enforce a uniform interface.

Kwargs:

  • Position (3vector): Position of object (default [0,0,0])

  • Direction (3vector): Direction along which the object points (default [0,0,1])

Raises

- AttributeError

>>> GenericObject = GeometryObject(position=(0.0,1.0,0.0),direction=(1.0,0,0))
>>> print(GenericObject.position)
(0.0,1.0,0.0)
__init__(position=(0.0, 0.0, 0.0), direction=(0, 0, 1))[source]

Kwargs:

  • Position (3vector): Position of object (default [0,0,0])

  • Direction (3vector): Direction along which the object points (default [0,0,1])

Raises

- AttributeError

>>> GenericObject = GeometryObject(position=(0.0,1.0,0.0),direction=(1.0,0,0))
>>> print(GenericObject.position)
(0.0,1.0,0.0)