opticalib 2.5.2__tar.gz → 2.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {opticalib-2.5.2/opticalib.egg-info → opticalib-2.5.3}/PKG-INFO +1 -1
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/_version.py +3 -3
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/dmutils/iff_processing.py +82 -82
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/simulator/_API/base_petalmirror.py +2 -2
- {opticalib-2.5.2 → opticalib-2.5.3/opticalib.egg-info}/PKG-INFO +1 -1
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib.egg-info/scm_version.json +2 -2
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_dmutils_iff_processing.py +1 -1
- {opticalib-2.5.2 → opticalib-2.5.3}/CITATION.bib +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/LICENSE +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/MANIFEST.in +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/README.md +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/__init_script__/initCalpy.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/__version__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/analyzer/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/analyzer/image_processing.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/analyzer/signals.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/analyzer/timeseries.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/core/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/core/_configurations/DOCS.md +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/core/_configurations/configuration.yaml +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/core/_types.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/core/config.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/core/data_classes.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/core/decorators.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/core/exceptions.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/core/fitsarray.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/core/root.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/base_devices.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/cameras/GigE_live_viewer.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/cameras/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/cameras/frame_buffer.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/dms/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/dms/alpaoAPI.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/dms/micAPI.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/dms/nacoAPI.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/dms/piAPI.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/dms/splattAPI.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/wfs/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/wfs/i4dAPI.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/_API/wfs/pupil_detector.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/cameras.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/deformable_mirrors.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/interferometer.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/devices/wfs.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/dmutils/__actuator_identification_wip.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/dmutils/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/dmutils/__pupil_calibration_wip.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/dmutils/_misc.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/dmutils/flattening.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/dmutils/iff_preparation.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/dmutils/slaving.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/ground/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/ground/_stitching_algorithm.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/ground/geometry.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/ground/logger.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/ground/modal_decomposer.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/ground/osutils.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/ground/reconstructor.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/ground/roi.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/activity.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/app.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/kernel.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/kernel_backend.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/kernel_side.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/plugins.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/procedures/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/procedures/alignment.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/procedures/base.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/procedures/dm_calibration.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/procedures/params.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/procedures/phasing.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/procedures/stitching.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/procedures/timeseries.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/resources/opticalib.ico +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/resources/opticalib.png +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/resources/opticalib.svg +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/theme.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/widgets/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/widgets/common.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/widgets/config_editor.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/widgets/connect_dialog.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/widgets/data_browser.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/widgets/device_panel.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/widgets/device_registry.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/widgets/plot_viewer.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/gui/widgets/workspace.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/procedures/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/procedures/alignment.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/procedures/iff.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/procedures/measurements.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/procedures/phasing.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/procedures/stitching.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/py.typed +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/simulator/_API/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/simulator/_API/alpao_conf.yaml +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/simulator/_API/base_fake_adopticadm.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/simulator/_API/base_fake_alpao.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/simulator/_API/base_simulated_dm.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/simulator/_API/simdata.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/simulator/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/simulator/factory.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/simulator/fake_dms.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/simulator/fake_interf.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib/visualization.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib.egg-info/SOURCES.txt +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib.egg-info/dependency_links.txt +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib.egg-info/entry_points.txt +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib.egg-info/requires.txt +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib.egg-info/scm_file_list.json +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/opticalib.egg-info/top_level.txt +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/pyproject.toml +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/pytest.ini +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/setup.cfg +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/setup_calpy.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/README.md +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/__init__.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/conftest.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_analyzer_images_processing.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_analyzer_signals.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_analyzer_timeseries.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_core_dataclass.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_core_exceptions.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_core_fits.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_core_read_config.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_core_root.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_devices_cameras.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_devices_cameras_no_vmbpy.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_devices_deformable_mirrors.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_devices_interferometer.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_devices_wfs.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_dmutils_flattening.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_dmutils_iff_acquisition_preparation.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_dmutils_iff_module.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_dmutils_iff_normalization.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_dmutils_slaving.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_ground_computerec.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_ground_geometry.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_ground_logger.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_ground_modal_decomposer.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_ground_osutils.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_ground_roi.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_ground_stitching_algorithm.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_gui_activity.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_gui_app.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_gui_config_editor.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_gui_devices.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_gui_kernel_bridge.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_gui_kernel_side.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_gui_procedures.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_gui_widgets.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_measurements.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_portability.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_setup_calpy.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_simulator_factory_functions.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_simulator_run_cmd_history.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_simulator_simdata.py +0 -0
- {opticalib-2.5.2 → opticalib-2.5.3}/tests/test_typings.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opticalib
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.3
|
|
4
4
|
Summary: This package is a python interface for laboratory adaptive optics systems, with a focus on the calibration of deformable mirrors (DMs) and the acquisition of wavefront data using wavefront sensors.
|
|
5
5
|
Author-email: Adaptive Optics Group - INAF - Osservatorio Astrofisico di Arcetri <pietro.ferraiuolo@inaf.it>
|
|
6
6
|
Maintainer-email: Pietro Ferraiuolo <pietro.ferraiuolo@inaf.it>
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '2.5.
|
|
22
|
-
__version_tuple__ = version_tuple = (2, 5,
|
|
21
|
+
__version__ = version = '2.5.3'
|
|
22
|
+
__version_tuple__ = version_tuple = (2, 5, 3)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'gb74f01d95'
|
|
@@ -479,7 +479,7 @@ def stack_cubes(tnlist: list[str], cube_names: _ot.Optional[list[str]] = None) -
|
|
|
479
479
|
|
|
480
480
|
# Get cube parameters and validation info
|
|
481
481
|
cubes, cmats, mvecs, avecs, rebin = _get_cube_list(tnlist, cube_names)
|
|
482
|
-
cube_type = _check_stacked_cubes(tnlist)["Flag"]["Cube type"]
|
|
482
|
+
# cube_type = _check_stacked_cubes(tnlist)["Flag"]["Cube type"]
|
|
483
483
|
|
|
484
484
|
# Convert FitsMaskedArrayGpu to regular masked arrays for dstack
|
|
485
485
|
cube_list = [
|
|
@@ -493,7 +493,7 @@ def stack_cubes(tnlist: list[str], cube_names: _ot.Optional[list[str]] = None) -
|
|
|
493
493
|
stacked_avec = _np.hstack(avecs)
|
|
494
494
|
# Build header with metadata
|
|
495
495
|
header = {
|
|
496
|
-
"FLAG": (cube_type, "stacking mode"),
|
|
496
|
+
# "FLAG": (cube_type, "stacking mode"),
|
|
497
497
|
"NSTACK": (len(tnlist), "number of stacked cubes"),
|
|
498
498
|
"REBIN": (rebin, "common rebinning factor"),
|
|
499
499
|
}
|
|
@@ -1276,34 +1276,34 @@ def _get_acq_info(
|
|
|
1276
1276
|
return info
|
|
1277
1277
|
|
|
1278
1278
|
|
|
1279
|
-
def _check_stacked_cubes(tnlist: str) -> dict[str, _ot.Any]:
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1279
|
+
# def _check_stacked_cubes(tnlist: str) -> dict[str, _ot.Any]:
|
|
1280
|
+
# """
|
|
1281
|
+
# Inspect the cubes to stack, to check whether there are shared modes, or not.
|
|
1282
|
+
|
|
1283
|
+
# Parameters
|
|
1284
|
+
# ----------
|
|
1285
|
+
# tnlist : list of str
|
|
1286
|
+
# List containing the tracking number of the cubes to stack.
|
|
1287
|
+
|
|
1288
|
+
# Returns
|
|
1289
|
+
# -------
|
|
1290
|
+
# flag : dict
|
|
1291
|
+
# Dictionary containing the flagging information about the stacked cube.
|
|
1292
|
+
# """
|
|
1293
|
+
# _, _, modesVectList, _, rebin = _get_cube_list(tnlist)
|
|
1294
|
+
# nmodes = len(modesVectList[0])
|
|
1295
|
+
# nvects = len(modesVectList)
|
|
1296
|
+
# for i in range(nvects):
|
|
1297
|
+
# for j in range(i + 1, nvects):
|
|
1298
|
+
# common_modes = set(modesVectList[i]).intersection(modesVectList[j])
|
|
1299
|
+
# c_nmodes = len(common_modes)
|
|
1300
|
+
# if c_nmodes in range(1, nmodes):
|
|
1301
|
+
# flag = __flag(tnlist, modesVectList, rebin, 2)
|
|
1302
|
+
# elif c_nmodes == nmodes:
|
|
1303
|
+
# flag = __flag(tnlist, modesVectList, rebin, 1)
|
|
1304
|
+
# else:
|
|
1305
|
+
# flag = __flag(tnlist, modesVectList, rebin, 0)
|
|
1306
|
+
# return flag
|
|
1307
1307
|
|
|
1308
1308
|
|
|
1309
1309
|
def _check_information_consistency(info: dict[str, _ot.Any]) -> None:
|
|
@@ -1342,55 +1342,55 @@ def _check_information_consistency(info: dict[str, _ot.Any]) -> None:
|
|
|
1342
1342
|
)
|
|
1343
1343
|
|
|
1344
1344
|
|
|
1345
|
-
def __flag(
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
) -> dict[str, _ot.Any]:
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
{tn}, modes {modesVectList[i][0]} to {modesVectList[i][-1]}"""
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
{tn}, modes {list(modesVectList[i])}"""
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1345
|
+
# def __flag(
|
|
1346
|
+
# tnlist: list[str],
|
|
1347
|
+
# modesVectList: list[int] | list[_ot.ArrayLike],
|
|
1348
|
+
# rebin: int,
|
|
1349
|
+
# type: int,
|
|
1350
|
+
# ) -> dict[str, _ot.Any]:
|
|
1351
|
+
# """
|
|
1352
|
+
# Creates the dictionary to dump into the 'flag.txt' file accordingly to
|
|
1353
|
+
# sequentially stacked cubes with no repeated modes.
|
|
1354
|
+
|
|
1355
|
+
# Parameters
|
|
1356
|
+
# ----------
|
|
1357
|
+
# tnlist : list of str
|
|
1358
|
+
# List containing the tracking number of the cubes to stack.
|
|
1359
|
+
# modesVectList : list of ndarray
|
|
1360
|
+
# A list containing the modes vectors for each cube.
|
|
1361
|
+
# type : int
|
|
1362
|
+
# Type of stacked cube created.
|
|
1363
|
+
# 0 for sequential, 1 for mean, 2 for shared modes.
|
|
1364
|
+
|
|
1365
|
+
# Returns
|
|
1366
|
+
# -------
|
|
1367
|
+
# config : dict
|
|
1368
|
+
# Dictionary containing the flagging information about the stacked cube.
|
|
1369
|
+
# """
|
|
1370
|
+
# c_type = [
|
|
1371
|
+
# "sequential stack",
|
|
1372
|
+
# "mean stack",
|
|
1373
|
+
# "(WARN)repeated modes",
|
|
1374
|
+
# ]
|
|
1375
|
+
# text = ""
|
|
1376
|
+
# for i, tn in enumerate(tnlist):
|
|
1377
|
+
# if _np.array_equal(
|
|
1378
|
+
# modesVectList[i],
|
|
1379
|
+
# _np.arange(modesVectList[i][0], modesVectList[i][-1] + 1, 1),
|
|
1380
|
+
# ):
|
|
1381
|
+
# text += f"""
|
|
1382
|
+
# {tn}, modes {modesVectList[i][0]} to {modesVectList[i][-1]}"""
|
|
1383
|
+
# else:
|
|
1384
|
+
# text += f"""
|
|
1385
|
+
# {tn}, modes {list(modesVectList[i])}"""
|
|
1386
|
+
# flag = {
|
|
1387
|
+
# "Flag": {
|
|
1388
|
+
# "Rebin": str(rebin),
|
|
1389
|
+
# "Cube type": c_type[type],
|
|
1390
|
+
# "Source cubes": text,
|
|
1391
|
+
# }
|
|
1392
|
+
# }
|
|
1393
|
+
# _config["Flag"] = {}
|
|
1394
|
+
# for key, value in flag["Flag"].items():
|
|
1395
|
+
# _config["Flag"][key] = value
|
|
1396
|
+
# return _config
|
|
@@ -50,7 +50,7 @@ class BaseFakePTL(BaseSimulatedDM):
|
|
|
50
50
|
self._slaveIds = []
|
|
51
51
|
self._borderIds = []
|
|
52
52
|
|
|
53
|
-
def _mirror_command(self, cmd: _ot.ArrayLike,
|
|
53
|
+
def _mirror_command(self, cmd: _ot.ArrayLike, differential: bool):
|
|
54
54
|
"""
|
|
55
55
|
Applies the given command to the deformable mirror.
|
|
56
56
|
|
|
@@ -66,7 +66,7 @@ class BaseFakePTL(BaseSimulatedDM):
|
|
|
66
66
|
calibrated_cmd = cmd[jj * 3 : (jj + 1) * 3] * self._unit_calib
|
|
67
67
|
cmd_amp = _np.dot(calibrated_cmd, self._K.T)
|
|
68
68
|
|
|
69
|
-
if not
|
|
69
|
+
if not differential:
|
|
70
70
|
cmd_amp -= self._act_pos[jj * 3 : (jj + 1) * 3]
|
|
71
71
|
|
|
72
72
|
self._shape[idx] += _np.dot(cmd_amp, self.im[jj])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opticalib
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.3
|
|
4
4
|
Summary: This package is a python interface for laboratory adaptive optics systems, with a focus on the calibration of deformable mirrors (DMs) and the acquisition of wavefront data using wavefront sensors.
|
|
5
5
|
Author-email: Adaptive Optics Group - INAF - Osservatorio Astrofisico di Arcetri <pietro.ferraiuolo@inaf.it>
|
|
6
6
|
Maintainer-email: Pietro Ferraiuolo <pietro.ferraiuolo@inaf.it>
|
|
@@ -177,7 +177,7 @@ class TestStackCubes:
|
|
|
177
177
|
)
|
|
178
178
|
|
|
179
179
|
tnlist = [tn1, tn2]
|
|
180
|
-
monkeypatch.setattr(ifp, "_check_stacked_cubes", lambda tn_list: {'Flag':{'Cube type': 'sequential stack'}})
|
|
180
|
+
# monkeypatch.setattr(ifp, "_check_stacked_cubes", lambda tn_list: {'Flag':{'Cube type': 'sequential stack'}})
|
|
181
181
|
ifp.stack_cubes(tnlist, cube_names=None)
|
|
182
182
|
|
|
183
183
|
# Verify stacked cube was created
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|