39 from aenum
import MultiValueEnum
43 RAD2ARCSEC = 3600. * 360. / (2 * np.pi)
44 ARCSEC2RAD = 2. * np.pi / (360. * 3600.)
45 RAD2DEG = 180. / np.pi
46 DEG2RAD = np.pi / 180.
51 Create a safe-type enum instance from bytes contents
54 if not isinstance(name, str)
or \
55 not name
in vars(cls).values():
56 raise ValueError(
"Invalid enumeration value for enum %s, value %s" % (cls, name))
62 Types of deformable mirrors
72 Types of Piezo DM patterns
82 Possible KLs for computations
91 Influence function types
95 RADIALSCHWARTZ =
'radialSchwartz'
96 SQUARESCHWARTZ =
'squareSchwartz'
97 BLACKNUTT =
'blacknutt'
109 GENERIC_LINEAR =
'generic_linear'
118 Command law types for generic controller only
121 INTEGRATOR =
'integrator'
122 MODAL_INTEGRATOR =
'modal_integrator'
123 TWO_MATRICES =
'2matrices'
137 MASKEDPIX =
'maskedpix'
147 Pyramid centroider methods
148 Local flux normalization (eq SH quad-cell, ray optics. Ragazzonni 1996)
149 Global flux normalization (Verinaud 2004, most > 2010 Pyr applications)
150 Resulting (A+/-B-/+C-D)/(A+B+C+D) or sin((A+/-B-/+C-D)/(A+B+C+D))
151 ref. code sutra_centroider_pyr.h
183 EELT_NOMINAL =
'EELT-Nominal'
185 EELT_BP1 =
'EELT-BP1'
186 EELT_BP3 =
'EELT-BP3'
187 EELT_BP5 =
'EELT-BP5'
188 EELT_CUSTOM =
'EELT-Custom'
191 VLT_NOOBS =
'VLT-NoObs'
203 Sodium profile for LGS
209 MULTIPEAK =
'Multipeak'
211 GAUSS1:
"allProfileNa_withAltitude_1Gaussian.npy",
212 GAUSS2:
"allProfileNa_withAltitude_2Gaussian.npy",
213 GAUSS3:
"allProfileNa_withAltitude_3Gaussian.npy",
214 EXP:
"allProfileNa_withAltitude.npy",
215 MULTIPEAK:
"multipeakProfileNa_withAltitude.npy"
228 """Compass pupil enumeration
230 SPUPIL =
"spupil",
"s"
231 MPUPIL =
"mpupil",
"m"
232 IPUPIL =
"ipupil",
"i"
235 """ Coronograph types
240 SPHERE_APLC =
"SPHERE_APLC"
245 SPHERE_APLC_APO1 =
"SPHERE_APLC_apodizer_APO1"
248 """ Focal plane mask types
250 CLASSICAL_LYOT =
"classical_Lyot"
251 SPHERE_APLC_fpm_ALC1 =
"SPHERE_APLC_fpm_ALC1"
252 SPHERE_APLC_fpm_ALC2 =
"SPHERE_APLC_fpm_ALC2"
253 SPHERE_APLC_fpm_ALC3 =
"SPHERE_APLC_fpm_ALC3"
258 SPHERE_APLC_LYOT_STOP =
"SPHERE_APLC_Lyot_stop"
Command law types for generic controller only.
Types of deformable mirrors.
Influence function types.
Possible KLs for computations.
Types of Piezo DM patterns.
Compass pupil enumeration.
def check_enum(cls, name)
Create a safe-type enum instance from bytes contents.