File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -664,9 +664,12 @@ def log_text(self, message):
664664 display (message )
665665 self .text_log .children = (out , * self .text_log .children )
666666
667- def log_progress (self , progress ):
667+ def show_progress (self , progress ):
668668 self .progress_log .children = (progress ,)
669669
670+ def hide_progress (self ):
671+ self .progress_log .children = ()
672+
670673
671674class AmorBatchReductionGUI (ReflectometryBatchReductionGUI ):
672675 def __init__ (self ):
@@ -958,7 +961,7 @@ def run_workflow(self):
958961 )
959962
960963 progress = widgets .IntProgress (min = 0 , max = len (sample_df ))
961- self .log_progress (progress )
964+ self .show_progress (progress )
962965
963966 if (key := self .get_row_key (reference_df )) in self .results :
964967 reference_result = self .results [key ]
@@ -994,3 +997,5 @@ def run_workflow(self):
994997 params , params ["Scale" ] * wf .compute (ReflectivityOverQ ).hist ()
995998 )
996999 progress .value += 1
1000+
1001+ self .hide_progress ()
You can’t perform that action at this time.
0 commit comments