progress_bar.set_current_progress_char('>') progress_bar.set_prefix_expression( 'Station {station} out of {n_stations} [') progress_bar.set_postfix_expression('] - Batch: {start} - {end}') progress_bar.set_prefix_arg('n_stations', len(stations)) progress_bar.set_max(stations=len(stations), streams=1., traces=1., batches=1., inter=1.) for i_station, archive_list in enumerate(stations): progress_bar.set_progress(i_station, level='stations') progress_bar.set_prefix_arg('station', i_station + 1) # Archives path and meta data archive_data = st.archive_to_path(archive_list, current_dt, params['archive_path'], params['channel_order']) # Check if streams path are valid from os.path import isfile valid = True for channel in params['channel_order']: if not isfile(archive_data[channel]): valid = False break