Skip to content

Commit 1dde4fe

Browse files
committed
Refactor compute_common_operations to run average and standard deviation in a loop
1 parent c5e13b5 commit 1dde4fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

datalab/tests/scenarios/common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ def compute_common_operations(panel: SignalPanel | ImagePanel) -> None:
115115

116116
panel.objview.select_objects((3, 7))
117117
panel.processor.run_feature("division")
118-
panel.objview.select_objects((1, 2, 3))
119-
panel.processor.run_feature("average")
118+
for feature_name in ("average", "standard_deviation"):
119+
panel.objview.select_objects((1, 2, 3))
120+
panel.processor.run_feature(feature_name)
120121

121122
panel.add_label_with_title()
122123

0 commit comments

Comments
 (0)