pyglaze 0.1.0__py3-none-any.whl → 0.1.2__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.
- pyglaze/__init__.py +1 -1
- pyglaze/datamodels/pulse.py +4 -14
- {pyglaze-0.1.0.dist-info → pyglaze-0.1.2.dist-info}/METADATA +1 -1
- {pyglaze-0.1.0.dist-info → pyglaze-0.1.2.dist-info}/RECORD +7 -7
- {pyglaze-0.1.0.dist-info → pyglaze-0.1.2.dist-info}/WHEEL +1 -1
- {pyglaze-0.1.0.dist-info → pyglaze-0.1.2.dist-info}/LICENSE +0 -0
- {pyglaze-0.1.0.dist-info → pyglaze-0.1.2.dist-info}/top_level.txt +0 -0
pyglaze/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "
|
|
1
|
+
__version__ = "0.1.2"
|
pyglaze/datamodels/pulse.py
CHANGED
|
@@ -35,18 +35,10 @@ class Pulse:
|
|
|
35
35
|
if not isinstance(obj, Pulse):
|
|
36
36
|
return False
|
|
37
37
|
|
|
38
|
-
# Check if shapes are equal before using np.all (will throw error on different shapes)
|
|
39
|
-
if obj.time.shape != self.time.shape:
|
|
40
|
-
return False
|
|
41
|
-
if obj.signal.shape != self.signal.shape:
|
|
42
|
-
return False
|
|
43
|
-
if not isinstance(obj.signal_err, type(self.signal_err)):
|
|
44
|
-
return False
|
|
45
|
-
|
|
46
38
|
return bool(
|
|
47
|
-
np.
|
|
48
|
-
and np.
|
|
49
|
-
and np.
|
|
39
|
+
np.array_equal(self.time, obj.time)
|
|
40
|
+
and np.array_equal(self.signal, obj.signal)
|
|
41
|
+
and np.array_equal(self.signal_err, obj.signal_err) # type: ignore[arg-type]
|
|
50
42
|
)
|
|
51
43
|
|
|
52
44
|
@cached_property
|
|
@@ -108,9 +100,7 @@ class Pulse:
|
|
|
108
100
|
Args:
|
|
109
101
|
d: A dictionary containing the keys 'time', 'signal' and potentially 'signal_err'.
|
|
110
102
|
"""
|
|
111
|
-
err = (
|
|
112
|
-
np.array(d["signal_err"]) if type(d.get("signal_err")) is not None else None
|
|
113
|
-
)
|
|
103
|
+
err = np.array(d["signal_err"]) if d.get("signal_err") is not None else None
|
|
114
104
|
return Pulse(
|
|
115
105
|
time=np.array(d["time"]), signal=np.array(d["signal"]), signal_err=err
|
|
116
106
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
pyglaze/__init__.py,sha256=
|
|
1
|
+
pyglaze/__init__.py,sha256=YvuYzWnKtqBb-IqG8HAu-nhIYAsgj9Vmc_b9o7vO-js,22
|
|
2
2
|
pyglaze/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
pyglaze/datamodels/__init__.py,sha256=DJLByl2C7pC4RM4Uh6PW-McM5RIGBjcopzGywCKhSlI,111
|
|
4
|
-
pyglaze/datamodels/pulse.py,sha256=
|
|
4
|
+
pyglaze/datamodels/pulse.py,sha256=4dZ9jmakDZ_2lG9OBEl32_QKlS3Cj1ixxaSlvjyutbY,20169
|
|
5
5
|
pyglaze/datamodels/waveform.py,sha256=n31DhJHFeBNZ3hHqQUiCGXssm5Dc8wV6tGPkhmFYB4Q,5809
|
|
6
6
|
pyglaze/device/__init__.py,sha256=NbN0I1U3mc_kNz-HyRCGRQQSi5z5peEZOIrH3z-m52Y,445
|
|
7
7
|
pyglaze/device/ampcom.py,sha256=_cPfgXb78uuj-GZkNPNDjifhQvqfkAxYycY8n_E2bvk,16767
|
|
@@ -25,8 +25,8 @@ pyglaze/scanning/__init__.py,sha256=uCBaeDTufOrC9KWf30ICqcmvFg_YT85olb3M9jkvZRg,
|
|
|
25
25
|
pyglaze/scanning/_asyncscanner.py,sha256=n4PhRBSZLFSSeGgBkgVwFsdY4rnduXJnQo6TQ0ujVkw,5224
|
|
26
26
|
pyglaze/scanning/client.py,sha256=3qrQStkeLQzCeu4yMHJ_ENLGQ7E5GMc4CP9J55rk-ug,1817
|
|
27
27
|
pyglaze/scanning/scanner.py,sha256=TGHTO4qoLeKzb_hCuqEEAlKicbDvozY-3GiSfxiatXI,8226
|
|
28
|
-
pyglaze-0.1.
|
|
29
|
-
pyglaze-0.1.
|
|
30
|
-
pyglaze-0.1.
|
|
31
|
-
pyglaze-0.1.
|
|
32
|
-
pyglaze-0.1.
|
|
28
|
+
pyglaze-0.1.2.dist-info/LICENSE,sha256=LCP3sGBX7LxuQopcjeug1fW4tngWCHF4zB7QCgB28xM,1504
|
|
29
|
+
pyglaze-0.1.2.dist-info/METADATA,sha256=kVOBOygqiA8ZZHdrO09wi8pkkM2qhTP-3NKUIgiXSM4,3498
|
|
30
|
+
pyglaze-0.1.2.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
31
|
+
pyglaze-0.1.2.dist-info/top_level.txt,sha256=X7d5rqVVuWNmtK4-Uh4sgOLlqye8vaHZOr5RYba0REo,8
|
|
32
|
+
pyglaze-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|