Skip to content

Commit

Permalink
optimize handling subset_state changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Aug 29, 2024
1 parent a01b5a5 commit 0e9c1ca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,9 @@ def _aperture_items_changed(self, msg):
return
if not hasattr(self, 'aperture'):
return
orig_labels = [item['label'] for item in msg['old']]
for item in msg['new']:
if item not in msg['old']:
if item['label'] not in orig_labels:
if item.get('type') != 'spatial':
continue
subset_lbl = item.get('label')
Expand Down

0 comments on commit 0e9c1ca

Please sign in to comment.