1010from .plotting import MetricTable , ScalingPlot
1111from .bokeh_widget import BokehWidgetWrapper
1212from .reporting import ReportGenerator
13+ from .tqdm_widget import tqdm_notebook_noauto
1314
1415from pypop .utils .exceptions import ExtraePRVNoOnOffEventsError
1516
@@ -128,7 +129,7 @@ def __init__(self, metric_calc="auto", base_dir=".", starting_files=None, **kwar
128129 self ._status_box = VBox ()
129130
130131 super ().__init__ (
131- children = [VBox ([self ._status_box , self ._fileselector ])],
132+ children = [VBox ([self ._fileselector , self ._status_box ])],
132133 layout = Layout (width = "auto" , max_width = "1280px" ),
133134 ** kwargs
134135 )
@@ -139,19 +140,27 @@ def _calculate_callback_hook(self, callback_reference=None):
139140
140141 advanced_config = self ._fileselector ._advanced_config_controls
141142
143+ fileprogress = tqdm_notebook_noauto (self ._fileselector .filenames , leave = False )
144+ self ._status_box .children = [fileprogress .container ]
145+
142146 try :
143147 statistics = TraceSet (
144- self . _fileselector . filenames ,
148+ fileprogress ,
145149 force_recalculation = advanced_config ["Delete Cache" ].value ,
146- chop_to_roi = advanced_config ["Chop to ROI" ].value
150+ chop_to_roi = advanced_config ["Chop to ROI" ].value ,
151+ no_progress = True ,
147152 )
148153 except ExtraePRVNoOnOffEventsError as err :
154+ fileprogress = tqdm_notebook_noauto (self ._fileselector .filenames , leave = False )
149155 warnstr = "Warning: Disabling Chopping to ROI ({})" .format (err )
150- self ._status_box .children = [Text (warnstr , layout = Layout (width = 'auto' ))]
156+ self ._status_box .children = [fileprogress .container ,
157+ Text (warnstr , layout = Layout (width = 'auto' ))]
158+
151159 statistics = TraceSet (
152- self . _fileselector . filenames ,
160+ fileprogress ,
153161 force_recalculation = advanced_config ["Delete Cache" ].value ,
154162 chop_to_roi = False ,
163+ no_progress = True ,
155164 )
156165
157166 if self ._metric_calculator in ("auto" , None ):
0 commit comments