def __init__(self):
        SRWDriverSetting.__init__(self)

        #***********Wavefront Propagation Parameters:
        #[0]: Auto-Resize (1) or not (0) Before propagation
        #[1]: Auto-Resize (1) or not (0) After propagation
        #[2]: Relative Precision for propagation with Auto-Resizing (1. is nominal)
        #[3]: Allow (1) or not (0) for semi-analytical treatment of the quadratic (leading) phase terms at the propagation
        #[4]: Do any Resizing on Fourier side, using FFT, (1) or not (0)
        #[5]: Horizontal Range modification factor at Resizing (1. means no modification)
        #[6]: Horizontal Resolution modification factor at Resizing
        #[7]: Vertical Range modification factor at Resizing
        #[8]: Vertical Resolution modification factor at Resizing
        #[9]: Type of wavefront Shift before Resizing (not yet implemented)
        #[10]: New Horizontal wavefront Center position after Shift (not yet implemented)
        #[11]: New Vertical wavefront Center position after Shift (not yet implemented)

        self._auto_resize_before_propagation = True
        self._auto_resize_after_propagation = True
        self._auto_resize_relative_precision = 1.0
        self._allow_semi_analytical_phase_treatment = False
        self._resize_on_ft_side = False
        self._resize_factor_horizontal = 1.0
        self._resize_resolution_horizontal = 1.0
        self._resize_factor_vertical = 1.0
        self._resize_resolution_vertical = 1.0

        self.set_drift_space_settings(None)
예제 #2
0
    def __init__(self):
        SRWDriverSetting.__init__(self)

        self._meth        = 1         #SR calculation method: 0- "manual", 1- "auto-undulator", 2- "auto-wiggler"
        self._relPrec     = 0.01      #relative precision
        self._zStartInteg = 0         #longitudinal position to start integration (effective if < zEndInteg)
        self._zEndInteg   = 0         #longitudinal position to finish integration (effective if > zStartInteg)
        self._npTraj      = 20000     #Number of points for trajectory calculation
        self._useTermin   = 1         #Use "terminating terms" (i.e. asymptotic expansions at zStartInteg and zEndInteg) or not (1 or 0 respectively)
        self._sampFactNxNyForProp = 2 #sampling factor for adjusting nx, ny (effective if > 0)
 def __init__(self):
     SRWDriverSetting.__init__(self)