diff --git a/factor/check_progress.py b/factor/check_progress.py index c4395a7e..148a0901 100644 --- a/factor/check_progress.py +++ b/factor/check_progress.py @@ -42,12 +42,20 @@ def run(parset_file, trim_names=True): """ global all_directions + # Set logging level to ERROR to suppress extraneous info from parset read + logging.root.setLevel(logging.ERROR) + log.setLevel(logging.ERROR) + # Read in parset and get directions all_directions = load_directions(parset_file) if len(all_directions) == 0: log.error('No directions found. Please check parset') sys.exit(1) + # Set logging level to normal + logging.root.setLevel(logging.INFO) + log.setLevel(logging.INFO) + # Plot field log.info('Plotting facets...') log.info('Left-click on a facet to see its current state') @@ -56,10 +64,6 @@ def run(parset_file, trim_names=True): log.info('(In all cases, pan/zoom mode must be off)') log.info('Press "u" to update display (display is updated automatically every minute)') - # Set logging level to ERROR to suppress extraneous info - logging.root.setLevel(logging.ERROR) - log.setLevel(logging.ERROR) - plot_state(all_directions, trim_names=trim_names)