COMPASS  5.0.0
End-to-end AO simulation tool using GPU acceleration
test_compassSupervisor Namespace Reference

Functions

def test_next ()
 
def test_loop ()
 
def test_reset ()
 
def test_enable_atmos ()
 
def test_set_r0 ()
 
def test_set_wind ()
 
def test_reset_turbu ()
 
def test_get_atmos_layer ()
 
def test_move_atmos ()
 
def test_set_command ()
 
def test_set_one_actu ()
 
def test_get_influ_function ()
 
def test_get_influ_function_ipupil_coords ()
 
def test_reset_dm ()
 
def test_get_dm_shape ()
 
def test_set_dm_registration ()
 
def test_get_tar_image ()
 
def test_get_tar_phase ()
 
def test_set_tar_phase ()
 
def test_reset_strehl ()
 
def test_reset_tar_phase ()
 
def test_get_ncpa_tar ()
 
def test_set_ncpa_tar ()
 
def test_comp_tar_image ()
 
def test_comp_strehl ()
 
def test_get_strehl ()
 
def test_get_wfs_image ()
 
def test_set_noise ()
 
def test_set_gs_mag ()
 
def test_compute_wfs_image ()
 
def test_reset_noise ()
 
def test_get_wfs_phase ()
 
def test_set_ncpa_wfs ()
 
def test_get_ncpa_wfs ()
 
def test_set_wfs_phase ()
 
def test_set_wfs_pupil ()
 
def test_set_pyr_modulation_points ()
 
def test_set_pyr_modulation_ampli ()
 
def test_set_pyr_multiple_stars_source ()
 
def test_set_pyr_disk_source_hexa ()
 
def test_set_pyr_disk_source ()
 
def test_set_pyr_square_source ()
 
def test_set_pyr_pseudo_source ()
 
def test_set_fourier_mask ()
 
def test_get_pyrhr_image ()
 
def test_get_pyr_focal_plane ()
 
def test_set_perturbation_voltage ()
 
def test_get_slopes ()
 
def test_close_loop ()
 
def test_open_loop ()
 
def test_set_ref_slopes ()
 
def test_get_ref_slopes ()
 
def test_set_gain ()
 
def test_get_interaction_matrix ()
 
def test_get_command_matrix ()
 
def test_set_command_matrix ()
 
def test_get_intensities ()
 
def test_set_flat ()
 
def test_set_dark ()
 
def test_compute_slopes ()
 
def test_reset_perturbation_voltage ()
 
def test_remove_perturbation_voltage ()
 
def test_get_err ()
 
def test_get_voltages ()
 
def test_set_integrator_law ()
 
def test_set_2matrices_law ()
 
def test_set_modal_integrator_law ()
 
def test_set_decay_factor ()
 
def test_set_E_matrix ()
 
def test_reset_ref_slopes ()
 
def test_set_centroider_threshold ()
 
str test_get_pyr_method ()
 
def test_set_pyr_method ()
 
def test_set_modal_gains ()
 
def test_get_modal_gains ()
 
def test_get_masked_pix ()
 
def test_get_command ()
 
def test_reset_command ()
 
def test_get_slopes_geom ()
 
def test_get_selected_pix ()
 
def test_do_ref_slopes ()
 
def test_do_control ()
 
def test_do_calibrate_img ()
 
def test_do_centroids ()
 
def test_do_centroids_geom ()
 
def test_apply_control ()
 
def test_do_clipping ()
 
def test_set_scale ()
 
def test_publish ()
 
def test_compute_influ_basis ()
 
def test_compute_modes_to_volts_basis ()
 
def test_compute_btt_basis ()
 
def test_compute_merged_influ ()
 
def test_compute_btt_petal ()
 
def test_compute_phase_to_modes ()
 
def test_apply_volts_and_get_slopes ()
 
def test_do_imat_modal ()
 
def test_do_imat_phase ()
 
def test_compute_modal_residuals ()
 

Variables

 config = load_config_from_file(os.getenv("COMPASS_ROOT") + "/shesha/tests/pytest/par/test_pyrhr.py")
 
 sup = CompassSupervisor(config)
 

Function Documentation

◆ test_apply_control()

def test_compassSupervisor.test_apply_control ( )

Definition at line 413 of file test_compassSupervisor.py.

413 
414 def test_do_clipping():
415  sup.rtc.do_clipping(0)
416  assert(True)

◆ test_apply_volts_and_get_slopes()

def test_compassSupervisor.test_apply_volts_and_get_slopes ( )

Definition at line 471 of file test_compassSupervisor.py.

471 def test_do_imat_phase():
472  sup.calibration.do_imat_phase(0, np.zeros((5, sup.wfs.get_ncpa_wfs(0).shape[0], sup.wfs.get_ncpa_wfs(0).shape[0])))
473  assert(True)
474 
475 def test_compute_modal_residuals():

◆ test_close_loop()

def test_compassSupervisor.test_close_loop ( )

Definition at line 244 of file test_compassSupervisor.py.

244 
245 def test_open_loop():
246  sup.rtc.open_loop()
247  assert(True)

◆ test_comp_strehl()

def test_compassSupervisor.test_comp_strehl ( )

Definition at line 124 of file test_compassSupervisor.py.

124 def test_comp_strehl():
125  sup.target.comp_strehl(0)
126  sup.target.comp_strehl(0, do_fit=False)
127  assert(True)
128 

◆ test_comp_tar_image()

def test_compassSupervisor.test_comp_tar_image ( )

Definition at line 119 of file test_compassSupervisor.py.

119 def test_comp_tar_image():
120  sup.target.comp_tar_image(0)
121  sup.target.comp_tar_image(0, puponly=1, compLE=False)
122  assert(True)
123 

◆ test_compute_btt_basis()

def test_compassSupervisor.test_compute_btt_basis ( )

Definition at line 449 of file test_compassSupervisor.py.

449 @pytest.mark.skipif("petal" not in [dm.influ_type for dm in sup.config.p_dms], reason="Petal dm only")
450 def test_compute_btt_petal():
451  sup.basis.compute_btt_petal()
452  assert(True)
453 

◆ test_compute_btt_petal()

def test_compassSupervisor.test_compute_btt_petal ( )

Definition at line 459 of file test_compassSupervisor.py.

459 # | (__/ _` | | | '_ \ '_/ _` | _| / _ \ ' \
460 # \___\__,_|_|_|_.__/_| \__,_|\__|_\___/_||_|
461 #
462 def test_apply_volts_and_get_slopes():

◆ test_compute_influ_basis()

def test_compassSupervisor.test_compute_influ_basis ( )

Definition at line 434 of file test_compassSupervisor.py.

434 
435 def test_compute_modes_to_volts_basis():
436  _ = sup.basis.compute_modes_to_volts_basis("KL2V")
437  _ = sup.basis.compute_modes_to_volts_basis("Btt")

◆ test_compute_merged_influ()

def test_compassSupervisor.test_compute_merged_influ ( )

Definition at line 454 of file test_compassSupervisor.py.

454 def test_compute_phase_to_modes():
455  sup.basis.compute_phase_to_modes(sup.basis.projection_matrix)
456  assert(True)
457 # ___ _ _ _ _ _
458 # / __|__ _| (_) |__ _ _ __ _| |_(_)___ _ _

◆ test_compute_modal_residuals()

def test_compassSupervisor.test_compute_modal_residuals ( )

Definition at line 484 of file test_compassSupervisor.py.

◆ test_compute_modes_to_volts_basis()

def test_compassSupervisor.test_compute_modes_to_volts_basis ( )

Definition at line 438 of file test_compassSupervisor.py.

438  assert(True)
439 
440 def test_compute_btt_basis():
441  sup.basis.compute_btt_basis()
442  assert(True)
443 
444 @pytest.mark.skipif(sup.config.p_tel.type_ap == "EELT", reason="EELT pupil only")
445 def test_compute_merged_influ():
446  sup.basis.compute_merged_influ(0)
447  assert(True)
448 

◆ test_compute_phase_to_modes()

def test_compassSupervisor.test_compute_phase_to_modes ( )

Definition at line 463 of file test_compassSupervisor.py.

463  sup.calibration.apply_volts_and_get_slopes(0)
464  sup.calibration.apply_volts_and_get_slopes(0, noise=True, turbu=True, reset=False)
465  assert(True)
466 
467 def test_do_imat_modal():
468  sup.calibration.do_imat_modal(0, np.ones(sup.basis.modal_basis.shape[0]), sup.basis.modal_basis)
469  assert(True)
470 

◆ test_compute_slopes()

def test_compassSupervisor.test_compute_slopes ( )

Definition at line 289 of file test_compassSupervisor.py.

289 
290 def test_reset_perturbation_voltage():
291  sup.rtc.reset_perturbation_voltage(0)
292  assert(True)

◆ test_compute_wfs_image()

def test_compassSupervisor.test_compute_wfs_image ( )

Definition at line 151 of file test_compassSupervisor.py.

151 def test_compute_wfs_image():
152  sup.wfs.compute_wfs_image(0)
153  sup.wfs.compute_wfs_image(0, noise=False)
154  assert(True)
155 

◆ test_do_calibrate_img()

def test_compassSupervisor.test_do_calibrate_img ( )

Definition at line 401 of file test_compassSupervisor.py.

401 
402 def test_do_centroids():
403  sup.rtc.do_centroids(0)
404  assert(True)

◆ test_do_centroids()

def test_compassSupervisor.test_do_centroids ( )

Definition at line 405 of file test_compassSupervisor.py.

405 
406 def test_do_centroids_geom():
407  sup.rtc.do_centroids_geom(0)
408  assert(True)

◆ test_do_centroids_geom()

def test_compassSupervisor.test_do_centroids_geom ( )

Definition at line 409 of file test_compassSupervisor.py.

409 
410 def test_apply_control():
411  sup.rtc.apply_control(0)
412  assert(True)

◆ test_do_clipping()

def test_compassSupervisor.test_do_clipping ( )

Definition at line 417 of file test_compassSupervisor.py.

417 
418 def test_set_scale():
419  sup.rtc.set_scale(0, 1)
420  assert(True)

◆ test_do_control()

def test_compassSupervisor.test_do_control ( )

Definition at line 397 of file test_compassSupervisor.py.

397 
398 def test_do_calibrate_img():
399  sup.rtc.do_calibrate_img(0)
400  assert(True)

◆ test_do_imat_modal()

def test_compassSupervisor.test_do_imat_modal ( )

Definition at line 476 of file test_compassSupervisor.py.

476  sup.calibration.compute_modal_residuals(sup.basis.projection_matrix)
477  assert(True)

◆ test_do_imat_phase()

def test_compassSupervisor.test_do_imat_phase ( )

Definition at line 480 of file test_compassSupervisor.py.

◆ test_do_ref_slopes()

def test_compassSupervisor.test_do_ref_slopes ( )

Definition at line 393 of file test_compassSupervisor.py.

393 
394 def test_do_control():
395  sup.rtc.do_control(0)
396  assert(True)

◆ test_enable_atmos()

def test_compassSupervisor.test_enable_atmos ( )

Definition at line 29 of file test_compassSupervisor.py.

29 def test_enable_atmos():
30  sup.atmos.enable_atmos(False)
31  assert(sup.atmos.is_enable == False)
32 

◆ test_get_atmos_layer()

def test_compassSupervisor.test_get_atmos_layer ( )

Definition at line 45 of file test_compassSupervisor.py.

45 def test_get_atmos_layer():
46  sup.atmos.get_atmos_layer(0)
47  assert(True)
48 

◆ test_get_command()

def test_compassSupervisor.test_get_command ( )

Definition at line 372 of file test_compassSupervisor.py.

372 
373 def test_set_command():
374  sup.rtc.set_command(0, np.zeros(sup.config.p_controllers[0].nactu))
375  assert(True)
Here is the call graph for this function:

◆ test_get_command_matrix()

def test_compassSupervisor.test_get_command_matrix ( )

Definition at line 268 of file test_compassSupervisor.py.

268 
269 def test_set_command_matrix():
270  sup.rtc.set_command_matrix(0, sup.rtc.get_command_matrix(0))
271  assert(True)

◆ test_get_dm_shape()

def test_compassSupervisor.test_get_dm_shape ( )

Definition at line 77 of file test_compassSupervisor.py.

77 def test_get_dm_shape():
78  sup.dms.get_dm_shape(0)
79  assert(True)
80 

◆ test_get_err()

def test_compassSupervisor.test_get_err ( )

Definition at line 302 of file test_compassSupervisor.py.

302 
303 def test_get_voltages():
304  sup.rtc.get_voltages(0)
305  assert(True)

◆ test_get_influ_function()

def test_compassSupervisor.test_get_influ_function ( )

Definition at line 65 of file test_compassSupervisor.py.

65 def test_get_influ_function():
66  sup.dms.get_influ_function(0)
67  assert(True)
68 

◆ test_get_influ_function_ipupil_coords()

def test_compassSupervisor.test_get_influ_function_ipupil_coords ( )

Definition at line 69 of file test_compassSupervisor.py.

69 def test_get_influ_function_ipupil_coords():
70  sup.dms.get_influ_function_ipupil_coords(0)
71  assert(True)
72 

◆ test_get_intensities()

def test_compassSupervisor.test_get_intensities ( )

Definition at line 277 of file test_compassSupervisor.py.

277 
278 def test_set_flat():
279  sup.rtc.set_flat(0, sup.wfs.get_wfs_image(0) * 0 + 1.)
280  assert(True)

◆ test_get_interaction_matrix()

def test_compassSupervisor.test_get_interaction_matrix ( )

Definition at line 264 of file test_compassSupervisor.py.

264 
265 def test_get_command_matrix():
266  sup.rtc.get_command_matrix(0)
267  assert(True)

◆ test_get_masked_pix()

def test_compassSupervisor.test_get_masked_pix ( )

Definition at line 368 of file test_compassSupervisor.py.

368 
369 def test_get_command():
370  sup.rtc.get_command(0)
371  assert(True)

◆ test_get_modal_gains()

def test_compassSupervisor.test_get_modal_gains ( )

Definition at line 363 of file test_compassSupervisor.py.

363 
364 @pytest.mark.skipif(sup.config.p_centroiders[0].type != "maskedpix", reason="maskedpix only")
365 def test_get_masked_pix():
366  sup.rtc.get_masked_pix(0)
367  assert(True)

◆ test_get_ncpa_tar()

def test_compassSupervisor.test_get_ncpa_tar ( )

Definition at line 111 of file test_compassSupervisor.py.

111 def test_get_ncpa_tar():
112  sup.target.get_ncpa_tar(0)
113  assert(True)
114 

◆ test_get_ncpa_wfs()

def test_compassSupervisor.test_get_ncpa_wfs ( )

Definition at line 168 of file test_compassSupervisor.py.

168 def test_get_ncpa_wfs():
169  sup.wfs.get_ncpa_wfs(0)
170  assert(True)
171 

◆ test_get_pyr_focal_plane()

def test_compassSupervisor.test_get_pyr_focal_plane ( )

Definition at line 228 of file test_compassSupervisor.py.

228 # ___ _ ___
229 # | _ \ |_ __ / __|___ _ __ _ __ __ _ ______
230 # | / _/ _| (__/ _ \ ' \| '_ \/ _` (_-<_-<
231 # |_|_\\__\__|\___\___/_|_|_| .__/\__,_/__/__/
232 # |_|
233 def test_set_perturbation_voltage():
234  sup.rtc.set_perturbation_voltage(0,"test",np.zeros(sup.config.p_controllers[0].nactu))
235  assert(True)

◆ test_get_pyr_method()

str test_compassSupervisor.test_get_pyr_method ( )

Definition at line 345 of file test_compassSupervisor.py.

345 
346 @pytest.mark.skipif(sup.config.p_centroiders[0].type != "pyr", reason="pyr only")
347 def test_set_pyr_method():
348  sup.rtc.set_pyr_method(0, 0)
349  sup.rtc.set_pyr_method(0, 1)

◆ test_get_pyrhr_image()

def test_compassSupervisor.test_get_pyrhr_image ( )

Definition at line 223 of file test_compassSupervisor.py.

223 
224 @pytest.mark.skipif(sup.config.p_wfss[0].type != "pyrhr", reason="pyrhr only")
225 def test_get_pyr_focal_plane():
226  sup.wfs.get_pyr_focal_plane(0)
227  assert(True)

◆ test_get_ref_slopes()

def test_compassSupervisor.test_get_ref_slopes ( )

Definition at line 256 of file test_compassSupervisor.py.

256 
257 def test_set_gain():
258  sup.rtc.set_gain(0, 0.2)
259  assert(True)

◆ test_get_selected_pix()

def test_compassSupervisor.test_get_selected_pix ( )

Definition at line 389 of file test_compassSupervisor.py.

389 
390 def test_do_ref_slopes():
391  sup.rtc.do_ref_slopes(0)
392  assert(True)

◆ test_get_slopes()

def test_compassSupervisor.test_get_slopes ( )

Definition at line 240 of file test_compassSupervisor.py.

240 
241 def test_close_loop():
242  sup.rtc.close_loop()
243  assert(True)

◆ test_get_slopes_geom()

def test_compassSupervisor.test_get_slopes_geom ( )

Definition at line 384 of file test_compassSupervisor.py.

384 
385 @pytest.mark.skipif(sup.config.p_centroiders[0].type != "maskedpix", reason="maskedpix only")
386 def test_get_selected_pix():
387  sup.rtc.get_selected_pix()
388  assert(True)

◆ test_get_strehl()

def test_compassSupervisor.test_get_strehl ( )

Definition at line 129 of file test_compassSupervisor.py.

129 def test_get_strehl():
130  sup.target.get_strehl(0)
131  sup.target.get_strehl(0, do_fit=False)
132  assert(True)
133 # __ ____ ___
134 # \ \ / / _|___/ __|___ _ __ _ __ __ _ ______
135 # \ \/\/ / _(_-< (__/ _ \ ' \| '_ \/ _` (_-<_-<
136 # \_/\_/|_| /__/\___\___/_|_|_| .__/\__,_/__/__/
137 # |_|

◆ test_get_tar_image()

def test_compassSupervisor.test_get_tar_image ( )

Definition at line 89 of file test_compassSupervisor.py.

89 def test_get_tar_image():
90  sup.target.get_tar_image(0)
91  sup.target.get_tar_image(0, expo_type="le")
92  assert(True)
93 

◆ test_get_tar_phase()

def test_compassSupervisor.test_get_tar_phase ( )

Definition at line 94 of file test_compassSupervisor.py.

94 def test_get_tar_phase():
95  sup.target.get_tar_phase(0)
96  sup.target.get_tar_phase(0, pupil=True)
97  assert(True)
98 

◆ test_get_voltages()

def test_compassSupervisor.test_get_voltages ( )

Definition at line 306 of file test_compassSupervisor.py.

306 
307 @pytest.mark.skipif(sup.config.p_controllers[0].type != "generic", reason="Generic only")
308 def test_set_integrator_law():
309  sup.rtc.set_integrator_law(0)
310  assert(True)

◆ test_get_wfs_image()

def test_compassSupervisor.test_get_wfs_image ( )

Definition at line 138 of file test_compassSupervisor.py.

138 def test_get_wfs_image():
139  sup.wfs.get_wfs_image(0)
140  assert(True)
141 

◆ test_get_wfs_phase()

def test_compassSupervisor.test_get_wfs_phase ( )

Definition at line 160 of file test_compassSupervisor.py.

160 def test_get_wfs_phase():
161  sup.wfs.get_wfs_phase(0)
162  assert(True)
163 

◆ test_loop()

def test_compassSupervisor.test_loop ( )

Definition at line 17 of file test_compassSupervisor.py.

17 def test_loop():
18  sup.loop(100)
19  assert(sup.iter == 101)
20 

◆ test_move_atmos()

def test_compassSupervisor.test_move_atmos ( )

Definition at line 49 of file test_compassSupervisor.py.

49 def test_move_atmos():
50  sup.atmos.move_atmos()
51  assert(True)
52 # ___ ___
53 # | \ _ __ / __|___ _ __ _ __ __ _ ______
54 # | |) | ' \ (__/ _ \ ' \| '_ \/ _` (_-<_-<
55 # |___/|_|_|_\___\___/_|_|_| .__/\__,_/__/__/
56 # |_|

◆ test_next()

def test_compassSupervisor.test_next ( )

Definition at line 13 of file test_compassSupervisor.py.

13 def test_next():
14  sup.next()
15  assert(sup.iter == 1)
16 

◆ test_open_loop()

def test_compassSupervisor.test_open_loop ( )

Definition at line 248 of file test_compassSupervisor.py.

248 
249 def test_set_ref_slopes():
250  sup.rtc.set_ref_slopes(np.zeros(sup.config.p_controllers[0].nslope))
251  assert(True)

◆ test_publish()

def test_compassSupervisor.test_publish ( )

Definition at line 426 of file test_compassSupervisor.py.

426 # __ __ _ _ ___ _
427 # | \/ |___ __| |__ _| | _ ) __ _ __(_)___
428 # | |\/| / _ \/ _` / _` | | _ \/ _` (_-< (_-<
429 # |_| |_\___/\__,_\__,_|_|___/\__,_/__/_/__/
430 #
431 def test_compute_influ_basis():
432  sup.basis.compute_influ_basis(0)
433  assert(True)

◆ test_remove_perturbation_voltage()

def test_compassSupervisor.test_remove_perturbation_voltage ( )

Definition at line 297 of file test_compassSupervisor.py.

297 
298 @pytest.mark.skipif(sup.config.p_controllers[0].type != "ls", reason="LS only")
299 def test_get_err():
300  sup.rtc.get_err(0)
301  assert(True)

◆ test_reset()

def test_compassSupervisor.test_reset ( )

Definition at line 21 of file test_compassSupervisor.py.

21 def test_reset():
22  sup.reset()
23  assert(True)
24 # _ ___
25 # __ _| |_ _ __ ___ ___/ __|___ _ __ _ __ __ _ ______
26 # / _` | _| ' \/ _ (_-< (__/ _ \ ' \| '_ \/ _` (_-<_-<
27 # \__,_|\__|_|_|_\___/__/\___\___/_|_|_| .__/\__,_/__/__/
28 # |_|

◆ test_reset_command()

def test_compassSupervisor.test_reset_command ( )

Definition at line 380 of file test_compassSupervisor.py.

380 
381 def test_get_slopes_geom():
382  sup.rtc.get_slopes_geom(0)
383  assert(True)

◆ test_reset_dm()

def test_compassSupervisor.test_reset_dm ( )

Definition at line 73 of file test_compassSupervisor.py.

73 def test_reset_dm():
74  sup.dms.reset_dm()
75  assert(True)
76 

◆ test_reset_noise()

def test_compassSupervisor.test_reset_noise ( )

Definition at line 156 of file test_compassSupervisor.py.

156 def test_reset_noise():
157  sup.wfs.reset_noise()
158  assert(True)
159 

◆ test_reset_perturbation_voltage()

def test_compassSupervisor.test_reset_perturbation_voltage ( )

Definition at line 293 of file test_compassSupervisor.py.

293 
294 def test_remove_perturbation_voltage():
295  sup.rtc.set_perturbation_voltage(0, "test", np.zeros(sup.config.p_controllers[0].nactu))
296  assert(True)

◆ test_reset_ref_slopes()

def test_compassSupervisor.test_reset_ref_slopes ( )

Definition at line 335 of file test_compassSupervisor.py.

335 
336 @pytest.mark.skipif(sup.config.p_centroiders[0].type != "tcog", reason="tcog only")
337 def test_set_centroider_threshold():
338  sup.rtc.set_centroider_threshold(0, 10)
339  assert(True)

◆ test_reset_strehl()

def test_compassSupervisor.test_reset_strehl ( )

Definition at line 103 of file test_compassSupervisor.py.

103 def test_reset_strehl():
104  sup.target.reset_strehl(0)
105  assert(True)
106 

◆ test_reset_tar_phase()

def test_compassSupervisor.test_reset_tar_phase ( )

Definition at line 107 of file test_compassSupervisor.py.

107 def test_reset_tar_phase():
108  sup.target.reset_tar_phase(0)
109  assert(True)
110 

◆ test_reset_turbu()

def test_compassSupervisor.test_reset_turbu ( )

Definition at line 41 of file test_compassSupervisor.py.

41 def test_reset_turbu():
42  sup.atmos.reset_turbu()
43  assert(True)
44 

◆ test_set_2matrices_law()

def test_compassSupervisor.test_set_2matrices_law ( )

Definition at line 316 of file test_compassSupervisor.py.

316 
317 @pytest.mark.skipif(sup.config.p_controllers[0].type != "generic", reason="Generic only")
318 def test_set_modal_integrator_law():
319  sup.rtc.set_modal_integrator_law(0)
320  assert(True)

◆ test_set_centroider_threshold()

def test_compassSupervisor.test_set_centroider_threshold ( )

Definition at line 340 of file test_compassSupervisor.py.

340 
341 @pytest.mark.skipif(sup.config.p_centroiders[0].type != "pyr", reason="pyr only")
342 def test_get_pyr_method() -> str:
343  sup.rtc.get_pyr_method(0)
344  assert(True)

◆ test_set_command()

def test_compassSupervisor.test_set_command ( )

Definition at line 57 of file test_compassSupervisor.py.

57 def test_set_command():
58  sup.dms.set_command(np.zeros(sup.config.p_controllers[0].nactu))
59  assert(True)
60 
Here is the caller graph for this function:

◆ test_set_command_matrix()

def test_compassSupervisor.test_set_command_matrix ( )

Definition at line 272 of file test_compassSupervisor.py.

272 
273 @pytest.mark.skip(reason="not implemented")
274 def test_get_intensities():
275  sup.rtc.get_intensities()
276  assert(True)

◆ test_set_dark()

def test_compassSupervisor.test_set_dark ( )

Definition at line 285 of file test_compassSupervisor.py.

285 
286 def test_compute_slopes():
287  sup.rtc.compute_slopes(0)
288  assert(True)

◆ test_set_decay_factor()

def test_compassSupervisor.test_set_decay_factor ( )

Definition at line 326 of file test_compassSupervisor.py.

326 
327 @pytest.mark.skipif(sup.config.p_controllers[0].type != "generic", reason="Generic only")
328 def test_set_E_matrix():
329  sup.rtc.set_E_matrix(0, np.identity(sup.config.p_controllers[0].nactu))
330  assert(True)

◆ test_set_dm_registration()

def test_compassSupervisor.test_set_dm_registration ( )

Definition at line 81 of file test_compassSupervisor.py.

81 def test_set_dm_registration():
82  sup.dms.set_dm_registration(0, dx=0, dy=0, theta=0, G=1)
83  assert(True)
84 # _____ _ ___
85 # |_ _|_ _ _ _ __ _ ___| |_ / __|___ _ __ _ __ __ _ ______
86 # | |/ _` | '_/ _` / -_) _| (__/ _ \ ' \| '_ \/ _` (_-<_-<
87 # |_|\__,_|_| \__, \___|\__|\___\___/_|_|_| .__/\__,_/__/__/
88 # |___/ |_|

◆ test_set_E_matrix()

def test_compassSupervisor.test_set_E_matrix ( )

Definition at line 331 of file test_compassSupervisor.py.

331 
332 def test_reset_ref_slopes():
333  sup.rtc.reset_ref_slopes(0)
334  assert(True)

◆ test_set_flat()

def test_compassSupervisor.test_set_flat ( )

Definition at line 281 of file test_compassSupervisor.py.

281 
282 def test_set_dark():
283  sup.rtc.set_dark(0,sup.wfs.get_wfs_image(0) * 0)
284  assert(True)

◆ test_set_fourier_mask()

def test_compassSupervisor.test_set_fourier_mask ( )

Definition at line 218 of file test_compassSupervisor.py.

218 
219 @pytest.mark.skipif(sup.config.p_wfss[0].type != "pyrhr", reason="pyrhr only")
220 def test_get_pyrhr_image():
221  sup.wfs.get_pyrhr_image(0)
222  assert(True)

◆ test_set_gain()

def test_compassSupervisor.test_set_gain ( )

Definition at line 260 of file test_compassSupervisor.py.

260 
261 def test_get_interaction_matrix():
262  sup.rtc.get_interaction_matrix(0)
263  assert(True)

◆ test_set_gs_mag()

def test_compassSupervisor.test_set_gs_mag ( )

Definition at line 147 of file test_compassSupervisor.py.

147 def test_set_gs_mag():
148  sup.wfs.set_gs_mag(0, 5)
149  assert(True)
150 

◆ test_set_integrator_law()

def test_compassSupervisor.test_set_integrator_law ( )

Definition at line 311 of file test_compassSupervisor.py.

311 
312 @pytest.mark.skipif(sup.config.p_controllers[0].type != "generic", reason="Generic only")
313 def test_set_2matrices_law():
314  sup.rtc.set_2matrices_law(0)
315  assert(True)

◆ test_set_modal_gains()

def test_compassSupervisor.test_set_modal_gains ( )

Definition at line 358 of file test_compassSupervisor.py.

358 
359 @pytest.mark.skipif(sup.config.p_controllers[0].type != "generic", reason="Generic only")
360 def test_get_modal_gains():
361  sup.rtc.get_modal_gains
362  assert(True)

◆ test_set_modal_integrator_law()

def test_compassSupervisor.test_set_modal_integrator_law ( )

Definition at line 321 of file test_compassSupervisor.py.

321 
322 @pytest.mark.skipif(sup.config.p_controllers[0].type != "generic", reason="Generic only")
323 def test_set_decay_factor():
324  sup.rtc.set_decay_factor(0, np.ones(sup.config.p_controllers[0].nactu))
325  assert(True)

◆ test_set_ncpa_tar()

def test_compassSupervisor.test_set_ncpa_tar ( )

Definition at line 115 of file test_compassSupervisor.py.

115 def test_set_ncpa_tar():
116  sup.target.set_ncpa_tar(0, sup.target.get_ncpa_tar(0))
117  assert(True)
118 

◆ test_set_ncpa_wfs()

def test_compassSupervisor.test_set_ncpa_wfs ( )

Definition at line 164 of file test_compassSupervisor.py.

164 def test_set_ncpa_wfs():
165  sup.wfs.set_ncpa_wfs(0, sup.wfs.get_wfs_phase(0) * 0.)
166  assert(True)
167 

◆ test_set_noise()

def test_compassSupervisor.test_set_noise ( )

Definition at line 142 of file test_compassSupervisor.py.

142 def test_set_noise():
143  sup.wfs.set_noise(0,-1)
144  sup.wfs.set_noise(0,1,seed=1235)
145  assert(True)
146 

◆ test_set_one_actu()

def test_compassSupervisor.test_set_one_actu ( )

Definition at line 61 of file test_compassSupervisor.py.

61 def test_set_one_actu():
62  sup.dms.set_one_actu(0, 0, ampli=1)
63  assert(True)
64 

◆ test_set_perturbation_voltage()

def test_compassSupervisor.test_set_perturbation_voltage ( )

Definition at line 236 of file test_compassSupervisor.py.

236 
237 def test_get_slopes():
238  sup.rtc.get_slopes(0)
239  assert(True)

◆ test_set_pyr_disk_source()

def test_compassSupervisor.test_set_pyr_disk_source ( )

Definition at line 204 of file test_compassSupervisor.py.

204 
205 @pytest.mark.skipif(sup.config.p_wfss[0].type != "pyrhr", reason="pyrhr only")
206 def test_set_pyr_square_source():
207  sup.wfs.set_pyr_square_source(0, 3)
208  assert(True)

◆ test_set_pyr_disk_source_hexa()

def test_compassSupervisor.test_set_pyr_disk_source_hexa ( )

Definition at line 199 of file test_compassSupervisor.py.

199 
200 @pytest.mark.skipif(sup.config.p_wfss[0].type != "pyrhr", reason="pyrhr only")
201 def test_set_pyr_disk_source():
202  sup.wfs.set_pyr_disk_source(0,3)
203  assert(True)

◆ test_set_pyr_method()

def test_compassSupervisor.test_set_pyr_method ( )

Definition at line 350 of file test_compassSupervisor.py.

350  sup.rtc.set_pyr_method(0, 2)
351  sup.rtc.set_pyr_method(0, 3)
352  assert(True)
353 
354 @pytest.mark.skipif(sup.config.p_controllers[0].type != "generic", reason="Generic only")
355 def test_set_modal_gains():
356  sup.rtc.set_modal_gains(0, np.ones(sup.config.p_controllers[0].nactu))
357  assert(True)

◆ test_set_pyr_modulation_ampli()

def test_compassSupervisor.test_set_pyr_modulation_ampli ( )

Definition at line 186 of file test_compassSupervisor.py.

186 def test_set_pyr_modulation_ampli():
187  _ = sup.wfs.set_pyr_modulation_ampli(0,3)
188  assert(True)
189 
190 @pytest.mark.skip(reason="How does it work ?")
191 def test_set_pyr_multiple_stars_source():
192 
193  assert(True)

◆ test_set_pyr_modulation_points()

def test_compassSupervisor.test_set_pyr_modulation_points ( )

Definition at line 181 of file test_compassSupervisor.py.

181 def test_set_pyr_modulation_points():
182  sup.wfs.set_pyr_modulation_points(0, sup.config.p_wfss[0]._pyr_cx, sup.config.p_wfss[0]._pyr_cy)
183  assert(True)
184 
185 @pytest.mark.skipif(sup.config.p_wfss[0].type != "pyrhr", reason="pyrhr only")

◆ test_set_pyr_multiple_stars_source()

def test_compassSupervisor.test_set_pyr_multiple_stars_source ( )

Definition at line 194 of file test_compassSupervisor.py.

194 
195 @pytest.mark.skipif(sup.config.p_wfss[0].type != "pyrhr", reason="pyrhr only")
196 def test_set_pyr_disk_source_hexa():
197  sup.wfs.set_pyr_disk_source_hexa(0, 1)
198  assert(True)

◆ test_set_pyr_pseudo_source()

def test_compassSupervisor.test_set_pyr_pseudo_source ( )

Definition at line 214 of file test_compassSupervisor.py.

214 @pytest.mark.skipif(sup.config.p_wfss[0].type != "pyrhr", reason="pyrhr only")
215 def test_set_fourier_mask():
216  sup.wfs.set_fourier_mask(0, sup.config.p_wfss[0].get_halfxy())
217  assert(True)

◆ test_set_pyr_square_source()

def test_compassSupervisor.test_set_pyr_square_source ( )

Definition at line 209 of file test_compassSupervisor.py.

209 
210 @pytest.mark.skip(reason="How does it work ?")
211 def test_set_pyr_pseudo_source():
212  assert(True)
213 

◆ test_set_r0()

def test_compassSupervisor.test_set_r0 ( )

Definition at line 33 of file test_compassSupervisor.py.

33 def test_set_r0():
34  sup.atmos.set_r0(0.15)
35  assert(sup.config.p_atmos.r0 == 0.15)
36 

◆ test_set_ref_slopes()

def test_compassSupervisor.test_set_ref_slopes ( )

Definition at line 252 of file test_compassSupervisor.py.

252 
253 def test_get_ref_slopes():
254  sup.rtc.get_ref_slopes()
255  assert(True)

◆ test_set_scale()

def test_compassSupervisor.test_set_scale ( )

Definition at line 421 of file test_compassSupervisor.py.

421 
422 @pytest.mark.skipif(sup.cacao is False, reason="cacao only")
423 def test_publish():
424  sup.rtc.publish()
425  assert(True)

◆ test_set_tar_phase()

def test_compassSupervisor.test_set_tar_phase ( )

Definition at line 99 of file test_compassSupervisor.py.

99 def test_set_tar_phase():
100  sup.target.set_tar_phase(0, sup.target.get_tar_phase(0))
101  assert(True)
102 

◆ test_set_wfs_phase()

def test_compassSupervisor.test_set_wfs_phase ( )

Definition at line 172 of file test_compassSupervisor.py.

172 def test_set_wfs_phase():
173  sup.wfs.set_wfs_phase(0, sup.wfs.get_wfs_phase(0))
174  assert(True)
175 

◆ test_set_wfs_pupil()

def test_compassSupervisor.test_set_wfs_pupil ( )

Definition at line 176 of file test_compassSupervisor.py.

176 def test_set_wfs_pupil():
177  sup.wfs.set_wfs_pupil(0, sup.config.p_geom._mpupil)
178  assert(True)
179 
180 @pytest.mark.skipif(sup.config.p_wfss[0].type != "pyrhr", reason="pyrhr only")

◆ test_set_wind()

def test_compassSupervisor.test_set_wind ( )

Definition at line 37 of file test_compassSupervisor.py.

37 def test_set_wind():
38  sup.atmos.set_wind(0,windspeed=10, winddir=45)
39  assert(True)
40 

Variable Documentation

◆ config

test_compassSupervisor.config = load_config_from_file(os.getenv("COMPASS_ROOT") + "/shesha/tests/pytest/par/test_pyrhr.py")

Definition at line 8 of file test_compassSupervisor.py.

◆ sup

test_compassSupervisor.sup = CompassSupervisor(config)

Definition at line 11 of file test_compassSupervisor.py.