Skip to content

Commit 3a9cd39

Browse files
committed
Auto-recompute analysis results when creation parameters change
1 parent 0b44e3f commit 3a9cd39

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

datalab/gui/panel/base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,12 @@ def apply_creation_parameters(self) -> None:
601601
# Update metadata with new creation parameters
602602
insert_creation_parameters(self.current_creation_obj, param)
603603

604+
# Auto-recompute analysis if the object had analysis parameters
605+
# Since the data has changed, any analysis results are now invalid
606+
# Use the processor for the current object's type
607+
obj_processor = self.__get_processor_associated_to(self.current_creation_obj)
608+
obj_processor.auto_recompute_analysis(self.current_creation_obj)
609+
604610
# Update the tree view item (to show new title if it changed)
605611
self.panel.objview.update_item(obj_uuid)
606612

0 commit comments

Comments
 (0)