pymodaq 3.6.13__py3-none-any.whl → 4.0.1__py3-none-any.whl
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.
Potentially problematic release.
This version of pymodaq might be problematic. Click here for more details.
- pymodaq/__init__.py +13 -6
- pymodaq/control_modules/__init__.py +0 -7
- pymodaq/control_modules/daq_move.py +965 -2
- pymodaq/control_modules/daq_move_ui.py +319 -0
- pymodaq/control_modules/daq_viewer.py +1573 -3
- pymodaq/control_modules/daq_viewer_ui.py +393 -0
- pymodaq/control_modules/mocks.py +51 -0
- pymodaq/control_modules/move_utility_classes.py +709 -8
- pymodaq/control_modules/utils.py +256 -0
- pymodaq/control_modules/viewer_utility_classes.py +663 -6
- pymodaq/daq_utils.py +89 -0
- pymodaq/dashboard.py +91 -72
- pymodaq/examples/custom_app.py +12 -11
- pymodaq/examples/custom_viewer.py +10 -10
- pymodaq/examples/function_plotter.py +16 -13
- pymodaq/examples/nonlinearscanner.py +8 -6
- pymodaq/examples/parameter_ex.py +7 -7
- pymodaq/examples/preset_MockCamera.xml +1 -0
- pymodaq/extensions/__init__.py +16 -0
- pymodaq/extensions/console.py +76 -0
- pymodaq/{daq_logger.py → extensions/daq_logger.py} +115 -65
- pymodaq/extensions/daq_scan.py +1339 -0
- pymodaq/extensions/daq_scan_ui.py +240 -0
- pymodaq/extensions/h5browser.py +23 -0
- pymodaq/{pid → extensions/pid}/__init__.py +4 -2
- pymodaq/{pid → extensions/pid}/daq_move_PID.py +2 -2
- pymodaq/{pid → extensions/pid}/pid_controller.py +48 -36
- pymodaq/{pid → extensions/pid}/utils.py +52 -6
- pymodaq/extensions/utils.py +40 -0
- pymodaq/post_treatment/__init__.py +6 -0
- pymodaq/{daq_analysis → post_treatment/daq_analysis}/daq_analysis_main.py +17 -17
- pymodaq/{daq_measurement → post_treatment/daq_measurement}/daq_measurement_main.py +8 -14
- pymodaq/post_treatment/load_and_plot.py +219 -0
- pymodaq/post_treatment/process_to_scalar.py +263 -0
- pymodaq/resources/QtDesigner_Ressources/Icon_Library/run_all.png +0 -0
- pymodaq/resources/QtDesigner_Ressources/Icon_Library/stop_all.png +0 -0
- pymodaq/resources/QtDesigner_Ressources/QtDesigner_ressources.bat +1 -1
- pymodaq/resources/QtDesigner_Ressources/QtDesigner_ressources.qrc +1 -0
- pymodaq/resources/QtDesigner_Ressources/QtDesigner_ressources_rc.py +109784 -109173
- pymodaq/resources/QtDesigner_Ressources/icons.svg +142 -0
- pymodaq/resources/VERSION +1 -1
- pymodaq/resources/config_template.toml +32 -13
- pymodaq/resources/preset_default.xml +1 -1
- pymodaq/{daq_utils → utils}/Tuto innosetup/script_full_setup.iss +1 -1
- pymodaq/utils/__init__.py +0 -29
- pymodaq/utils/abstract/__init__.py +48 -0
- pymodaq/{daq_utils → utils}/abstract/logger.py +7 -3
- pymodaq/utils/array_manipulation.py +379 -8
- pymodaq/{daq_utils → utils}/calibration_camera.py +6 -6
- pymodaq/{daq_utils → utils}/chrono_timer.py +1 -1
- pymodaq/utils/config.py +448 -0
- pymodaq/utils/conftests.py +5 -0
- pymodaq/utils/daq_utils.py +828 -8
- pymodaq/utils/data.py +1873 -7
- pymodaq/{daq_utils → utils}/db/db_logger/db_logger.py +86 -47
- pymodaq/{daq_utils → utils}/db/db_logger/db_logger_models.py +31 -10
- pymodaq/{daq_utils → utils}/enums.py +12 -7
- pymodaq/utils/exceptions.py +37 -0
- pymodaq/utils/factory.py +82 -0
- pymodaq/{daq_utils → utils}/gui_utils/__init__.py +1 -1
- pymodaq/utils/gui_utils/custom_app.py +129 -0
- pymodaq/utils/gui_utils/file_io.py +66 -0
- pymodaq/{daq_utils → utils}/gui_utils/layout.py +2 -2
- pymodaq/{daq_utils → utils}/gui_utils/utils.py +13 -3
- pymodaq/{daq_utils → utils}/gui_utils/widgets/__init__.py +2 -2
- pymodaq/utils/gui_utils/widgets/label.py +24 -0
- pymodaq/{daq_utils → utils}/gui_utils/widgets/lcd.py +12 -7
- pymodaq/{daq_utils → utils}/gui_utils/widgets/push.py +66 -2
- pymodaq/{daq_utils → utils}/gui_utils/widgets/qled.py +6 -4
- pymodaq/utils/gui_utils/widgets/spinbox.py +24 -0
- pymodaq/{daq_utils → utils}/gui_utils/widgets/table.py +2 -2
- pymodaq/utils/h5modules/__init__.py +1 -0
- pymodaq/{daq_utils/h5backend.py → utils/h5modules/backends.py} +200 -112
- pymodaq/utils/h5modules/browsing.py +683 -0
- pymodaq/utils/h5modules/data_saving.py +839 -0
- pymodaq/utils/h5modules/h5logging.py +110 -0
- pymodaq/utils/h5modules/module_saving.py +350 -0
- pymodaq/utils/h5modules/saving.py +914 -0
- pymodaq/utils/h5modules/utils.py +85 -0
- pymodaq/utils/logger.py +64 -6
- pymodaq/utils/managers/action_manager.py +460 -0
- pymodaq/{daq_utils → utils}/managers/batchscan_manager.py +144 -112
- pymodaq/{daq_utils → utils}/managers/modules_manager.py +188 -114
- pymodaq/{daq_utils → utils}/managers/overshoot_manager.py +3 -3
- pymodaq/utils/managers/parameter_manager.py +110 -0
- pymodaq/{daq_utils → utils}/managers/preset_manager.py +17 -13
- pymodaq/{daq_utils → utils}/managers/preset_manager_utils.py +8 -7
- pymodaq/{daq_utils → utils}/managers/remote_manager.py +7 -6
- pymodaq/{daq_utils → utils}/managers/roi_manager.py +148 -57
- pymodaq/utils/math_utils.py +546 -10
- pymodaq/{daq_utils → utils}/messenger.py +5 -1
- pymodaq/utils/parameter/__init__.py +2 -15
- pymodaq/{daq_utils → utils}/parameter/ioxml.py +12 -6
- pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/__init__.py +1 -3
- pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/filedir.py +1 -1
- pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/itemselect.py +3 -0
- pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/led.py +1 -1
- pymodaq/utils/parameter/pymodaq_ptypes/pixmap.py +161 -0
- pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/slide.py +1 -1
- pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/table.py +1 -1
- pymodaq/utils/parameter/utils.py +206 -11
- pymodaq/utils/plotting/data_viewers/__init__.py +6 -0
- pymodaq/utils/plotting/data_viewers/viewer.py +393 -0
- pymodaq/utils/plotting/data_viewers/viewer0D.py +251 -0
- pymodaq/utils/plotting/data_viewers/viewer1D.py +574 -0
- pymodaq/{daq_utils → utils}/plotting/data_viewers/viewer1Dbasic.py +8 -3
- pymodaq/{daq_utils → utils}/plotting/data_viewers/viewer2D.py +292 -357
- pymodaq/{daq_utils → utils}/plotting/data_viewers/viewer2D_basic.py +58 -75
- pymodaq/utils/plotting/data_viewers/viewerND.py +738 -0
- pymodaq/{daq_utils → utils}/plotting/gant_chart.py +2 -2
- pymodaq/{daq_utils → utils}/plotting/items/axis_scaled.py +4 -2
- pymodaq/{daq_utils → utils}/plotting/items/image.py +8 -6
- pymodaq/utils/plotting/navigator.py +355 -0
- pymodaq/utils/plotting/scan_selector.py +480 -0
- pymodaq/utils/plotting/utils/axes_viewer.py +88 -0
- pymodaq/utils/plotting/utils/filter.py +538 -0
- pymodaq/utils/plotting/utils/lineout.py +224 -0
- pymodaq/{daq_utils → utils}/plotting/utils/plot_utils.py +196 -84
- pymodaq/{daq_utils → utils}/plotting/utils/signalND.py +21 -13
- pymodaq/utils/plotting/widgets.py +76 -0
- pymodaq/utils/scanner/__init__.py +10 -0
- pymodaq/utils/scanner/scan_factory.py +204 -0
- pymodaq/utils/scanner/scanner.py +271 -0
- pymodaq/utils/scanner/scanners/_1d_scanners.py +117 -0
- pymodaq/utils/scanner/scanners/_2d_scanners.py +293 -0
- pymodaq/utils/scanner/scanners/sequential.py +192 -0
- pymodaq/utils/scanner/scanners/tabular.py +294 -0
- pymodaq/utils/scanner/utils.py +83 -0
- pymodaq/utils/slicing.py +47 -0
- pymodaq/utils/svg/__init__.py +6 -0
- pymodaq/utils/svg/svg_renderer.py +20 -0
- pymodaq/utils/svg/svg_view.py +35 -0
- pymodaq/utils/svg/svg_viewer2D.py +51 -0
- pymodaq/{daq_utils → utils}/tcp_server_client.py +36 -37
- pymodaq/{daq_utils → utils}/tree_layout/tree_layout_main.py +50 -35
- pymodaq/utils/units.py +216 -0
- pymodaq-4.0.1.dist-info/METADATA +159 -0
- {pymodaq-3.6.13.dist-info → pymodaq-4.0.1.dist-info}/RECORD +167 -170
- {pymodaq-3.6.13.dist-info → pymodaq-4.0.1.dist-info}/WHEEL +1 -2
- pymodaq-4.0.1.dist-info/entry_points.txt +8 -0
- pymodaq/daq_move/daq_move_gui.py +0 -279
- pymodaq/daq_move/daq_move_gui.ui +0 -534
- pymodaq/daq_move/daq_move_main.py +0 -1042
- pymodaq/daq_move/process_from_QtDesigner_DAQ_Move_GUI.bat +0 -2
- pymodaq/daq_move/utility_classes.py +0 -686
- pymodaq/daq_scan.py +0 -2160
- pymodaq/daq_utils/array_manipulation.py +0 -386
- pymodaq/daq_utils/config.py +0 -273
- pymodaq/daq_utils/conftests.py +0 -7
- pymodaq/daq_utils/custom_parameter_tree.py +0 -9
- pymodaq/daq_utils/daq_enums.py +0 -133
- pymodaq/daq_utils/daq_utils.py +0 -1402
- pymodaq/daq_utils/exceptions.py +0 -71
- pymodaq/daq_utils/gui_utils/custom_app.py +0 -103
- pymodaq/daq_utils/gui_utils/file_io.py +0 -75
- pymodaq/daq_utils/gui_utils/widgets/spinbox.py +0 -9
- pymodaq/daq_utils/h5exporter_hyperspy.py +0 -115
- pymodaq/daq_utils/h5exporters.py +0 -242
- pymodaq/daq_utils/h5modules.py +0 -1559
- pymodaq/daq_utils/h5utils.py +0 -241
- pymodaq/daq_utils/managers/action_manager.py +0 -236
- pymodaq/daq_utils/managers/parameter_manager.py +0 -57
- pymodaq/daq_utils/math_utils.py +0 -705
- pymodaq/daq_utils/parameter/__init__.py +0 -1
- pymodaq/daq_utils/parameter/oldpymodaq_ptypes.py +0 -1626
- pymodaq/daq_utils/parameter/pymodaq_ptypes/pixmap.py +0 -85
- pymodaq/daq_utils/parameter/utils.py +0 -136
- pymodaq/daq_utils/plotting/data_viewers/__init__.py +0 -0
- pymodaq/daq_utils/plotting/data_viewers/process_from_QtDesigner_0DViewer_GUI.bat +0 -2
- pymodaq/daq_utils/plotting/data_viewers/viewer0D.py +0 -204
- pymodaq/daq_utils/plotting/data_viewers/viewer0D_GUI.py +0 -89
- pymodaq/daq_utils/plotting/data_viewers/viewer0D_GUI.ui +0 -131
- pymodaq/daq_utils/plotting/data_viewers/viewer1D.py +0 -781
- pymodaq/daq_utils/plotting/data_viewers/viewerND.py +0 -894
- pymodaq/daq_utils/plotting/data_viewers/viewerbase.py +0 -64
- pymodaq/daq_utils/plotting/items/__init__.py +0 -0
- pymodaq/daq_utils/plotting/navigator.py +0 -500
- pymodaq/daq_utils/plotting/scan_selector.py +0 -289
- pymodaq/daq_utils/plotting/utils/__init__.py +0 -0
- pymodaq/daq_utils/plotting/utils/filter.py +0 -236
- pymodaq/daq_utils/plotting/viewer0D/__init__.py +0 -0
- pymodaq/daq_utils/plotting/viewer0D/viewer0D_main.py +0 -4
- pymodaq/daq_utils/plotting/viewer1D/__init__.py +0 -0
- pymodaq/daq_utils/plotting/viewer1D/viewer1D_main.py +0 -4
- pymodaq/daq_utils/plotting/viewer1D/viewer1Dbasic.py +0 -4
- pymodaq/daq_utils/plotting/viewer2D/viewer_2D_basic.py +0 -4
- pymodaq/daq_utils/plotting/viewer2D/viewer_2D_main.py +0 -4
- pymodaq/daq_utils/plotting/viewerND/__init__.py +0 -0
- pymodaq/daq_utils/plotting/viewerND/viewerND_main.py +0 -4
- pymodaq/daq_utils/scanner.py +0 -1289
- pymodaq/daq_utils/tree_layout/__init__.py +0 -0
- pymodaq/daq_viewer/__init__.py +0 -0
- pymodaq/daq_viewer/daq_gui_settings.py +0 -237
- pymodaq/daq_viewer/daq_gui_settings.ui +0 -441
- pymodaq/daq_viewer/daq_viewer_main.py +0 -2225
- pymodaq/daq_viewer/process_from_QtDesigner_DAQ_GUI_settings.bat +0 -2
- pymodaq/daq_viewer/utility_classes.py +0 -673
- pymodaq/examples/logger_image/__init__.py +0 -0
- pymodaq/examples/logger_image/logger_displayer.py +0 -121
- pymodaq/examples/logger_image/setup.svg +0 -3119
- pymodaq/examples/logger_image/setup_svg.py +0 -114
- pymodaq/h5browser.py +0 -39
- pymodaq/utils/scanner.py +0 -15
- pymodaq-3.6.13.dist-info/METADATA +0 -39
- pymodaq-3.6.13.dist-info/entry_points.txt +0 -8
- pymodaq-3.6.13.dist-info/top_level.txt +0 -1
- /pymodaq/{daq_analysis → post_treatment/daq_analysis}/__init__.py +0 -0
- /pymodaq/{daq_measurement → post_treatment/daq_measurement}/__init__.py +0 -0
- /pymodaq/{daq_measurement → post_treatment/daq_measurement}/daq_measurement_GUI.py +0 -0
- /pymodaq/{daq_measurement → post_treatment/daq_measurement}/daq_measurement_GUI.ui +0 -0
- /pymodaq/{daq_measurement → post_treatment/daq_measurement}/process_from_QtDesigner_DAQ_Measurement_GUI.bat +0 -0
- /pymodaq/{daq_utils → utils}/Tuto innosetup/Tuto innosetup.odt +0 -0
- /pymodaq/{daq_utils → utils}/Tuto innosetup/Tuto innosetup.pdf +0 -0
- /pymodaq/{daq_move → utils/db}/__init__.py +0 -0
- /pymodaq/{daq_utils → utils/db/db_logger}/__init__.py +0 -0
- /pymodaq/{daq_utils → utils}/gui_utils/dock.py +0 -0
- /pymodaq/{daq_utils → utils}/gui_utils/list_picker.py +0 -0
- /pymodaq/{daq_utils/abstract → utils/managers}/__init__.py +0 -0
- /pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/bool.py +0 -0
- /pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/date.py +0 -0
- /pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/list.py +0 -0
- /pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/numeric.py +0 -0
- /pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/tableview.py +0 -0
- /pymodaq/{daq_utils → utils}/parameter/pymodaq_ptypes/text.py +0 -0
- /pymodaq/{daq_utils/db → utils/plotting}/__init__.py +0 -0
- /pymodaq/{daq_utils → utils}/plotting/image_viewer.py +0 -0
- /pymodaq/{daq_utils/db/db_logger → utils/plotting/items}/__init__.py +0 -0
- /pymodaq/{daq_utils → utils}/plotting/items/crosshair.py +0 -0
- /pymodaq/{daq_utils/managers → utils/plotting/utils}/__init__.py +0 -0
- /pymodaq/{daq_utils → utils}/qvariant.py +0 -0
- /pymodaq/{daq_utils/plotting/viewer2D → utils/scanner/scanners}/__init__.py +0 -0
- /pymodaq/{daq_utils/plotting → utils/tree_layout}/__init__.py +0 -0
- {pymodaq-3.6.13.dist-info → pymodaq-4.0.1.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
"""
|
|
3
|
-
Created the 30/01/2023
|
|
4
|
-
|
|
5
|
-
@author: Sebastien Weber
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
from qtpy import QtWidgets, QtCore, QtSvg, QtGui
|
|
9
|
-
from pymodaq.daq_utils.config import Config
|
|
10
|
-
from pyqtgraph.widgets.SpinBox import SpinBox
|
|
11
|
-
|
|
12
|
-
config = Config()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class SpinBox(SpinBox):
|
|
16
|
-
"""
|
|
17
|
-
In case I want to add pyqtgraph spinbox functionalities
|
|
18
|
-
"""
|
|
19
|
-
def __init__(self, *args, font_size=None, min_height=20, readonly=True, **kwargs):
|
|
20
|
-
super().__init__(*args, **kwargs)
|
|
21
|
-
|
|
22
|
-
if font_size is not None:
|
|
23
|
-
font = QtGui.QFont()
|
|
24
|
-
font.setPointSize(font_size)
|
|
25
|
-
self.setFont(font)
|
|
26
|
-
self.setMinimumHeight(min_height)
|
|
27
|
-
self.setReadOnly(readonly)
|
|
28
|
-
self.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class LabelSpinBox(QtWidgets.QWidget):
|
|
32
|
-
value_changed = QtCore.Signal(float)
|
|
33
|
-
|
|
34
|
-
def __init__(self, parent: QtWidgets.QWidget, label: str, readonly: bool):
|
|
35
|
-
super().__init__(parent)
|
|
36
|
-
self.setLayout(QtWidgets.QVBoxLayout())
|
|
37
|
-
self.label = QtWidgets.QLabel(f'{label}:')
|
|
38
|
-
self.spinbox = SpinBox(self, font_size=20, readonly=True)
|
|
39
|
-
self.spinbox.setDecimals(3)
|
|
40
|
-
self.layout().addWidget(self.label)
|
|
41
|
-
self.layout().addWidget(self.spinbox)
|
|
42
|
-
|
|
43
|
-
self.setMinimumHeight(70)
|
|
44
|
-
|
|
45
|
-
@property
|
|
46
|
-
def value(self) -> float:
|
|
47
|
-
self.spinbox.value()
|
|
48
|
-
|
|
49
|
-
@value.setter
|
|
50
|
-
def value(self, value: float):
|
|
51
|
-
self.spinbox.setValue(value)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class SetupSVG:
|
|
55
|
-
|
|
56
|
-
def __init__(self, parent_widget: QtWidgets.QWidget):
|
|
57
|
-
super().__init__()
|
|
58
|
-
self.parent = parent_widget
|
|
59
|
-
|
|
60
|
-
self.svg_widget = QtSvg.QSvgWidget('setup.svg')
|
|
61
|
-
self.settings_widget = QtWidgets.QWidget()
|
|
62
|
-
self.settings_widget.setLayout(QtWidgets.QVBoxLayout())
|
|
63
|
-
|
|
64
|
-
self.tangerine_power = LabelSpinBox(self.svg_widget, 'Power', True)
|
|
65
|
-
self.tangerine_rep_rate = LabelSpinBox(self.svg_widget, 'Rep. Rate', True)
|
|
66
|
-
|
|
67
|
-
self.compressor_delay = LabelSpinBox(self.svg_widget, 'Delay Comp.', True)
|
|
68
|
-
self.nopa_angle = LabelSpinBox(self.svg_widget, 'Angle', True)
|
|
69
|
-
self.nopa_delay = LabelSpinBox(self.svg_widget, 'Delay NOPA', True)
|
|
70
|
-
|
|
71
|
-
self._all = dict(power=self.tangerine_power, rep_rate=self.tangerine_rep_rate,
|
|
72
|
-
nopa_angle=self.nopa_angle, nopa_delay=self.nopa_delay)
|
|
73
|
-
|
|
74
|
-
self.setup_ui()
|
|
75
|
-
|
|
76
|
-
def add_settings(self, tree):
|
|
77
|
-
self.settings_widget.layout().addWidget(tree)
|
|
78
|
-
|
|
79
|
-
def setup_ui(self):
|
|
80
|
-
self.parent.setLayout(QtWidgets.QHBoxLayout())
|
|
81
|
-
|
|
82
|
-
self.svg_widget.setFixedSize(1000, 700)
|
|
83
|
-
self.parent.layout().addWidget(self.settings_widget)
|
|
84
|
-
self.parent.layout().addWidget(self.svg_widget)
|
|
85
|
-
self.svg_widget.renderer().setAspectRatioMode(QtCore.Qt.KeepAspectRatio)
|
|
86
|
-
self.parent.setSizePolicy(QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed))
|
|
87
|
-
|
|
88
|
-
self.tangerine_power.move(350, 20)
|
|
89
|
-
self.tangerine_rep_rate.move(350, 100)
|
|
90
|
-
self.compressor_delay.move(700, 200)
|
|
91
|
-
self.nopa_angle.move(400, 220)
|
|
92
|
-
self.nopa_delay.move(150, 630)
|
|
93
|
-
|
|
94
|
-
def update(self, id: str, value: float):
|
|
95
|
-
if id in self._all:
|
|
96
|
-
self._all[id].value = value
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
def main(init_qt=True):
|
|
100
|
-
import sys
|
|
101
|
-
if init_qt: # used for the test suite
|
|
102
|
-
app = QtWidgets.QApplication(sys.argv)
|
|
103
|
-
|
|
104
|
-
widget = QtWidgets.QWidget()
|
|
105
|
-
prog = SetupSVG(widget)
|
|
106
|
-
widget.show()
|
|
107
|
-
|
|
108
|
-
if init_qt:
|
|
109
|
-
sys.exit(app.exec_())
|
|
110
|
-
return prog, widget
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
if __name__ == '__main__':
|
|
114
|
-
main()
|
pymodaq/h5browser.py
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
from qtpy import QtWidgets
|
|
3
|
-
from pymodaq.daq_utils.h5modules import H5Browser
|
|
4
|
-
from pymodaq.daq_utils.config import Config
|
|
5
|
-
from pathlib import Path
|
|
6
|
-
|
|
7
|
-
import argparse
|
|
8
|
-
parser = argparse.ArgumentParser(description="Opens HDF5 files and navigate their contents")
|
|
9
|
-
parser.add_argument("-i", "--input", help="specify path to the file to be opened")
|
|
10
|
-
args = parser.parse_args()
|
|
11
|
-
|
|
12
|
-
config = Config()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
def main():
|
|
16
|
-
app = QtWidgets.QApplication(sys.argv)
|
|
17
|
-
if config['style']['darkstyle']:
|
|
18
|
-
import qdarkstyle
|
|
19
|
-
app.setStyleSheet(qdarkstyle.load_stylesheet())
|
|
20
|
-
|
|
21
|
-
h5file_path = None
|
|
22
|
-
|
|
23
|
-
if args.input:
|
|
24
|
-
h5file_path = Path(args.input).resolve() # Transform to absolute Path in case it is relative
|
|
25
|
-
|
|
26
|
-
if not h5file_path.exists():
|
|
27
|
-
print('Error: '+args.input+ ' does not exist. Opening h5browser without input file.')
|
|
28
|
-
h5file_path = None
|
|
29
|
-
|
|
30
|
-
win = QtWidgets.QMainWindow()
|
|
31
|
-
prog = H5Browser(win, h5file_path=h5file_path)
|
|
32
|
-
win.show()
|
|
33
|
-
QtWidgets.QApplication.processEvents()
|
|
34
|
-
sys.exit(app.exec_())
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if __name__ == '__main__':
|
|
38
|
-
main()
|
|
39
|
-
|
pymodaq/utils/scanner.py
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
"""
|
|
3
|
-
Created the 27/10/2022
|
|
4
|
-
|
|
5
|
-
@author: Sebastien Weber
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
from pymodaq.daq_utils import scanner
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def __getattr__(name):
|
|
12
|
-
if hasattr(scanner, name):
|
|
13
|
-
return getattr(scanner, name)
|
|
14
|
-
else:
|
|
15
|
-
raise AttributeError
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: pymodaq
|
|
3
|
-
Version: 3.6.13
|
|
4
|
-
Summary: Modular Data Acquisition with Python
|
|
5
|
-
Home-page: http://pymodaq.cnrs.fr
|
|
6
|
-
Author: Sébastien Weber
|
|
7
|
-
Author-email: sebastien.weber@cemes.fr
|
|
8
|
-
License: MIT
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
-
Classifier: Environment :: Other Environment
|
|
12
|
-
Classifier: Intended Audience :: Science/Research
|
|
13
|
-
Classifier: Topic :: Scientific/Engineering :: Human Machine Interfaces
|
|
14
|
-
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
|
-
Classifier: Topic :: Software Development :: User Interfaces
|
|
19
|
-
Requires-Python: >=3.6
|
|
20
|
-
License-File: LICENSE
|
|
21
|
-
Requires-Dist: qtpy
|
|
22
|
-
Requires-Dist: numpy
|
|
23
|
-
Requires-Dist: scipy
|
|
24
|
-
Requires-Dist: pyqtgraph (>=0.12)
|
|
25
|
-
Requires-Dist: easydict
|
|
26
|
-
Requires-Dist: tables
|
|
27
|
-
Requires-Dist: pymodaq-plugins-mock
|
|
28
|
-
Requires-Dist: simple-pid
|
|
29
|
-
Requires-Dist: python-dateutil
|
|
30
|
-
Requires-Dist: packaging
|
|
31
|
-
Requires-Dist: toml
|
|
32
|
-
Requires-Dist: pymodaq-plugin-manager (>=0.0.17)
|
|
33
|
-
Requires-Dist: qdarkstyle
|
|
34
|
-
Requires-Dist: multipledispatch
|
|
35
|
-
Requires-Dist: docutils (==0.17.1)
|
|
36
|
-
Requires-Dist: setuptools (>=60)
|
|
37
|
-
Requires-Dist: pint
|
|
38
|
-
Requires-Dist: importlib-metadata ; python_version < "3.8"
|
|
39
|
-
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
[console_scripts]
|
|
2
|
-
daq_logger = pymodaq.daq_logger:main
|
|
3
|
-
daq_move = pymodaq.daq_move.daq_move_main:main
|
|
4
|
-
daq_scan = pymodaq.daq_scan:main
|
|
5
|
-
daq_viewer = pymodaq.daq_viewer.daq_viewer_main:main
|
|
6
|
-
dashboard = pymodaq.dashboard:main
|
|
7
|
-
h5browser = pymodaq.h5browser:main
|
|
8
|
-
parameter_example = pymodaq.examples.parameter_ex:main
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pymodaq
|
|
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
|