Skip to content

Commit c94eff2

Browse files
committed
Fix: restore storage of image colormaps in metadata and update item parameters in plot handling
Fix #138
1 parent f809fd9 commit c94eff2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ See DataLab [roadmap page](https://datalab-platform.com/en/contributing/roadmap.
1616

1717
🛠️ Bug fixes:
1818

19+
* Fixed [Issue #138](https://github.com/DataLab-Platform/DataLab/issues/138) - Image colormaps were no longer stored in metadata (and serialized in HDF5 files) since PlotPy v2.6.3 (this commit, specifically: [PlotPyStack/PlotPy@a37af8a](https://github.com/PlotPyStack/PlotPy/commit/a37af8ae8392e5e3655e5c34b67a7cd1544ea845))
1920
* Fixed [Issue #137](https://github.com/DataLab-Platform/DataLab/issues/137) - Arithmetic operations and signal interpolation: dialog box with parameters is not displayed
2021
* Fixed [Issue #136](https://github.com/DataLab-Platform/DataLab/issues/136) - When processing a signal or an image, the analysis result is kept from original object
2122
* Before this fix, when processing a signal or an image (e.g. when applying a filter, a threshold, etc.), the analysis result was kept from the original object, and was not updated with the new data. Thus the analysis result was not meaningful anymore, and was misleading the user.

cdl/core/gui/panel/base.py

+3
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ def plot_item_parameters_changed(
312312
# Find the object corresponding to the plot item
313313
obj = self.plothandler.get_obj_from_item(item)
314314
if obj is not None:
315+
# Ensure that item's parameters are up-to-date:
316+
item.param.update_param(item)
317+
# Update object metadata from plot item parameters
315318
obj.update_metadata_from_plot_item(item)
316319
if obj is self.objview.get_current_object():
317320
self.objprop.update_properties_from(obj)

0 commit comments

Comments
 (0)