bec-widgets 1.0.0__py3-none-any.whl → 1.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.
- CHANGELOG.md +7 -4
- PKG-INFO +1 -1
- bec_widgets/widgets/figure/plots/waveform/waveform.py +14 -4
- {bec_widgets-1.0.0.dist-info → bec_widgets-1.0.1.dist-info}/METADATA +1 -1
- {bec_widgets-1.0.0.dist-info → bec_widgets-1.0.1.dist-info}/RECORD +9 -9
- pyproject.toml +1 -1
- {bec_widgets-1.0.0.dist-info → bec_widgets-1.0.1.dist-info}/WHEEL +0 -0
- {bec_widgets-1.0.0.dist-info → bec_widgets-1.0.1.dist-info}/entry_points.txt +0 -0
- {bec_widgets-1.0.0.dist-info → bec_widgets-1.0.1.dist-info}/licenses/LICENSE +0 -0
CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
3
|
|
4
|
+
## v1.0.1 (2024-10-22)
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* fix(waveform): added support for live_data and data access ([`7469c89`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/7469c892c8076fc09e61f173df6920c551241cec))
|
9
|
+
|
10
|
+
|
4
11
|
## v1.0.0 (2024-10-18)
|
5
12
|
|
6
13
|
### Breaking
|
@@ -157,10 +164,6 @@ is emitted multiple times. ([`f084e25`](https://gitlab.psi.ch/bec/bec_widgets/-/
|
|
157
164
|
|
158
165
|
* refactor: update dap_model also if x and y axis are selected ([`28ee385`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/28ee3856be2c47a63182b16454ece37a0ec04811))
|
159
166
|
|
160
|
-
* refactor: linear_region_selector accepts log_x data ([`7cc0726`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/7cc07263982a171744ff87adb10ea77585764b71))
|
161
|
-
|
162
|
-
* refactor: use accent colors for bec_status_box icons; closes #338 ([`e039304`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/e039304fd3ee03dc4a3fa22a69c207139e0c0d28))
|
163
|
-
|
164
167
|
### Testing
|
165
168
|
|
166
169
|
* test: add tests for scan_status_callback ([`dc0c825`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/dc0c825fd594c093a24543ff803d6c6564010e92))
|
PKG-INFO
CHANGED
@@ -1302,7 +1302,11 @@ class BECWaveform(BECPlotBase):
|
|
1302
1302
|
Update the scan curves with the data from the scan segment.
|
1303
1303
|
"""
|
1304
1304
|
try:
|
1305
|
-
data =
|
1305
|
+
data = (
|
1306
|
+
self.scan_item.live_data
|
1307
|
+
if hasattr(self.scan_item, "live_data") # backward compatibility
|
1308
|
+
else self.scan_item.data
|
1309
|
+
)
|
1306
1310
|
except AttributeError:
|
1307
1311
|
return
|
1308
1312
|
|
@@ -1355,8 +1359,14 @@ class BECWaveform(BECPlotBase):
|
|
1355
1359
|
list|np.ndarray|None: X data for the curve.
|
1356
1360
|
"""
|
1357
1361
|
x_data = None
|
1362
|
+
live_data = (
|
1363
|
+
self.scan_item.live_data
|
1364
|
+
if hasattr(self.scan_item, "live_data")
|
1365
|
+
else self.scan_item.data
|
1366
|
+
)
|
1358
1367
|
if self._x_axis_mode["name"] == "timestamp":
|
1359
|
-
|
1368
|
+
|
1369
|
+
timestamps = live_data[y_name][y_entry].timestamps
|
1360
1370
|
|
1361
1371
|
x_data = timestamps
|
1362
1372
|
return x_data
|
@@ -1376,7 +1386,7 @@ class BECWaveform(BECPlotBase):
|
|
1376
1386
|
else:
|
1377
1387
|
x_name = self.scan_item.status_message.info["scan_report_devices"][0]
|
1378
1388
|
x_entry = self.entry_validator.validate_signal(x_name, None)
|
1379
|
-
x_data =
|
1389
|
+
x_data = live_data[x_name][x_entry].val
|
1380
1390
|
self._x_axis_mode["label_suffix"] = f" [auto: {x_name}-{x_entry}]"
|
1381
1391
|
current_label = "" if self.config.axis.x_label is None else self.config.axis.x_label
|
1382
1392
|
self.plot_item.setLabel(
|
@@ -1387,7 +1397,7 @@ class BECWaveform(BECPlotBase):
|
|
1387
1397
|
x_name = curve.config.signals.x.name
|
1388
1398
|
x_entry = curve.config.signals.x.entry
|
1389
1399
|
try:
|
1390
|
-
x_data =
|
1400
|
+
x_data = live_data[x_name][x_entry].val
|
1391
1401
|
except TypeError:
|
1392
1402
|
x_data = []
|
1393
1403
|
return x_data
|
@@ -2,11 +2,11 @@
|
|
2
2
|
.gitlab-ci.yml,sha256=Dc1iDjsc72UxdUtihx4uSZU0lrTQeR8hZwGx1MQBfKE,8432
|
3
3
|
.pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
|
4
4
|
.readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
|
5
|
-
CHANGELOG.md,sha256=
|
5
|
+
CHANGELOG.md,sha256=GX7PuoUYFPE97vwwYtKRXNT28wKXobKHMinD7WHePo8,7769
|
6
6
|
LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
7
|
-
PKG-INFO,sha256=
|
7
|
+
PKG-INFO,sha256=O66ysa8oQnHNARW2zVR1Xd5ymeIXvNaEKTmmGIZszqY,1332
|
8
8
|
README.md,sha256=Od69x-RS85Hph0-WwWACwal4yUd67XkEn4APEfHhHFw,2649
|
9
|
-
pyproject.toml,sha256=
|
9
|
+
pyproject.toml,sha256=iGLNgHHnESjB03TIzIKmeFHNtQCwdXr2dxS6t9scdQk,2592
|
10
10
|
.git_hooks/pre-commit,sha256=n3RofIZHJl8zfJJIUomcMyYGFi_rwq4CC19z0snz3FI,286
|
11
11
|
.gitlab/issue_templates/bug_report_template.md,sha256=gAuyEwl7XlnebBrkiJ9AqffSNOywmr8vygUFWKTuQeI,386
|
12
12
|
.gitlab/issue_templates/documentation_update_template.md,sha256=FHLdb3TS_D9aL4CYZCjyXSulbaW5mrN2CmwTaeLPbNw,860
|
@@ -172,7 +172,7 @@ bec_widgets/widgets/figure/plots/image/image_processor.py,sha256=GeTtWjbldy6VejM
|
|
172
172
|
bec_widgets/widgets/figure/plots/motor_map/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
173
173
|
bec_widgets/widgets/figure/plots/motor_map/motor_map.py,sha256=AiDq4bmcEoj9PlkRQtHCk-5cwvOFGPBcfxPNNr8E53Y,18399
|
174
174
|
bec_widgets/widgets/figure/plots/waveform/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
175
|
-
bec_widgets/widgets/figure/plots/waveform/waveform.py,sha256=
|
175
|
+
bec_widgets/widgets/figure/plots/waveform/waveform.py,sha256=IEc8ZQILHEhzkJSZLpvUlZBxAenXnIU6otznHxcf9FA,57521
|
176
176
|
bec_widgets/widgets/figure/plots/waveform/waveform_curve.py,sha256=KduOM3glj3Xq1m63cBDIoauNsIwEzZb8SHcK01_aJfU,8719
|
177
177
|
bec_widgets/widgets/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
178
178
|
bec_widgets/widgets/image/bec_image_widget.pyproject,sha256=PHisdBo5_5UCApd27GkizzqgfdjsDx2bFZa_p9LiSW8,30
|
@@ -270,8 +270,8 @@ bec_widgets/widgets/website/register_website_widget.py,sha256=LIQJpV9uqcBiPR9cEA
|
|
270
270
|
bec_widgets/widgets/website/website.py,sha256=42pncCc_zI2eqeMArIurVmPUukRo5bTxa2h1Skah-io,3012
|
271
271
|
bec_widgets/widgets/website/website_widget.pyproject,sha256=scOiV3cV1_BjbzpPzy2N8rIJL5P2qIZz8ObTJ-Uvdtg,25
|
272
272
|
bec_widgets/widgets/website/website_widget_plugin.py,sha256=pz38_C2cZ0yvPPS02wdIPcmhFo_yiwUhflsASocAPQQ,1341
|
273
|
-
bec_widgets-1.0.
|
274
|
-
bec_widgets-1.0.
|
275
|
-
bec_widgets-1.0.
|
276
|
-
bec_widgets-1.0.
|
277
|
-
bec_widgets-1.0.
|
273
|
+
bec_widgets-1.0.1.dist-info/METADATA,sha256=O66ysa8oQnHNARW2zVR1Xd5ymeIXvNaEKTmmGIZszqY,1332
|
274
|
+
bec_widgets-1.0.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
275
|
+
bec_widgets-1.0.1.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
|
276
|
+
bec_widgets-1.0.1.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
277
|
+
bec_widgets-1.0.1.dist-info/RECORD,,
|
pyproject.toml
CHANGED
File without changes
|
File without changes
|
File without changes
|