コード例 #1
0
 def __init__(self,
              name="Undefined",
              boundary_shape=BoundaryShape(),
              optical_element_displacement=None):
     SRWSlit.__init__(
         self,
         name=name,
         boundary_shape=boundary_shape,
         optical_element_displacement=optical_element_displacement)
コード例 #2
0
 def __init__(self,
              name="Undefined",
              surface_shape=SurfaceShape(),
              boundary_shape=BoundaryShape(),
              mirror_parameters=None):
     Mirror.__init__(self,
                     name=name,
                     surface_shape=surface_shape,
                     boundary_shape=boundary_shape)
     Shadow3OpticalElementDecorator.__init__(self, mirror_parameters)
コード例 #3
0
ファイル: grating.py プロジェクト: PaNOSC-ViNYL/syned
    def __init__(self,
                 name="Undefined",
                 surface_shape=SurfaceShape(),
                 boundary_shape=BoundaryShape(),
                 ruling=800e3):
        super().__init__(name, surface_shape, boundary_shape)
        self._ruling = ruling

        # support text containg name of variable, help text and unit. Will be stored in self._support_dictionary
        self._set_support_text([
            ("name", "Name", ""),
            ("surface_shape", "Surface Shape", ""),
            ("boundary_shape", "Boundary Shape", ""),
            ("ruling", "Ruling at center", "lines/m^3"),
        ])
コード例 #4
0
ファイル: beam_stopper.py プロジェクト: oasys-kit/wofryimpl
 def __init__(self, name="Undefined", boundary_shape=BoundaryShape()):
     BeamStopper.__init__(self, name=name, boundary_shape=boundary_shape)
コード例 #5
0
 def __init__(self,
              name="Undefined",
              boundary_shape=BoundaryShape(),
              slit_parameters=Shadow3SlitParameters()):
     Slit.__init__(self, name=name, boundary_shape=boundary_shape)
     Shadow3Absorber.__init__(self, slit_parameters)
コード例 #6
0
ファイル: absorber.py プロジェクト: PaNOSC-ViNYL/syned
 def __init__(self, name="Undefined", boundary_shape=BoundaryShape()):
     OpticalElement.__init__(self, name=name, boundary_shape=boundary_shape)
コード例 #7
0
ファイル: slit.py プロジェクト: oasys-kit/wofryimpl
 def __init__(self, name="Undefined", boundary_shape=BoundaryShape()):
     Slit.__init__(self, name=name, boundary_shape=boundary_shape)
コード例 #8
0
 def __init__(self, name="Undefined", boundary_shape=None):
     if boundary_shape is None:
         boundary_shape = BoundaryShape()
     Absorber.__init__(self, name=name, boundary_shape=boundary_shape)
コード例 #9
0
 def __init__(self, name="Undefined", boundary_shape=None):
     if boundary_shape is None:
         boundary_shape = BoundaryShape()
     OpticalElement.__init__(self, name=name, boundary_shape=boundary_shape)