Skip to content

Commit

Permalink
ref: change identifier computation in quickview
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 4, 2024
1 parent 4a9b87d commit ae58c9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shapeout2/gui/quick_view/qv_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def get_event_image(self, ds, event):
def get_statistics(self):
if self.rtdc_ds is not None:
# cache statistics from
dsid = f"{hex(id(self.rtdc_ds))}{self.rtdc_ds.filter._parent_hash}"
dsid = self.rtdc_ds.identifier + self.rtdc_ds.filter._parent_hash
if dsid not in self._statistics_cache:
features = [self.comboBox_x.currentData(),
self.comboBox_y.currentData()]
Expand Down Expand Up @@ -715,7 +715,9 @@ def show_rtdc(self, rtdc_ds, slot):
else:
# Create a hierarchy child so that the user can browse
# comfortably through the data without seeing hidden events.
self.rtdc_ds = dclab.new_dataset(rtdc_ds)
self.rtdc_ds = dclab.new_dataset(
rtdc_ds,
identifier=f"child-of-{rtdc_ds.identifier}")
event_count = self.rtdc_ds.config["experiment"]["event count"]
if event_count == 0:
self.widget_scatter.hide()
Expand Down

0 comments on commit ae58c9b

Please sign in to comment.