py-coreDAQ 0.2.0__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.
py_coreDAQ/__init__.py ADDED
@@ -0,0 +1,62 @@
1
+ """py_coreDAQ — Python driver for the coreDAQ 4-channel optical power meter.
2
+
3
+ Quick start::
4
+
5
+ from py_coreDAQ import coreDAQ
6
+
7
+ with coreDAQ.connect() as coredaq: # auto-discovers real hardware
8
+ print(coredaq.read_all()) # [W, W, W, W]
9
+
10
+ with coreDAQ.connect(simulator=True) as coredaq:
11
+ result = coredaq.capture(frames=500)
12
+ print(result.trace(0))
13
+
14
+ All public names are importable from this top-level package::
15
+
16
+ from py_coreDAQ import (
17
+ coreDAQ, CaptureResult, ChannelReading, MeasurementSet,
18
+ coreDAQError, coreDAQConnectionError, coreDAQTimeoutError,
19
+ )
20
+ """
21
+ __version__ = "0.2.0"
22
+
23
+ from ._coredaq import (
24
+ CaptureChannelStatus,
25
+ CaptureLayout,
26
+ CaptureResult,
27
+ ChannelProxy,
28
+ ChannelReading,
29
+ DeviceInfo,
30
+ MeasurementSet,
31
+ SignalStatus,
32
+ coreDAQ,
33
+ )
34
+ from ._exceptions import (
35
+ coreDAQCalibrationError,
36
+ coreDAQConnectionError,
37
+ coreDAQError,
38
+ coreDAQTimeoutError,
39
+ coreDAQUnsupportedError,
40
+ )
41
+
42
+ __all__ = [
43
+ "__version__",
44
+ # Main class
45
+ "coreDAQ",
46
+ # Channel proxy
47
+ "ChannelProxy",
48
+ # Dataclasses
49
+ "DeviceInfo",
50
+ "SignalStatus",
51
+ "ChannelReading",
52
+ "MeasurementSet",
53
+ "CaptureLayout",
54
+ "CaptureChannelStatus",
55
+ "CaptureResult",
56
+ # Exceptions
57
+ "coreDAQError",
58
+ "coreDAQConnectionError",
59
+ "coreDAQTimeoutError",
60
+ "coreDAQCalibrationError",
61
+ "coreDAQUnsupportedError",
62
+ ]