From 1a3ac3147fdd30b3e1ee29cd28ab31c2e9770f70 Mon Sep 17 00:00:00 2001 From: Carlos Paniagua Date: Fri, 9 Feb 2024 13:15:50 -0500 Subject: [PATCH] refactor: display input args B02_make_spectra_gFT.py --- .../analysis_db/B02_make_spectra_gFT.py | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/icesat2_tracks/analysis_db/B02_make_spectra_gFT.py b/src/icesat2_tracks/analysis_db/B02_make_spectra_gFT.py index 58984c3f..d8cf55fd 100644 --- a/src/icesat2_tracks/analysis_db/B02_make_spectra_gFT.py +++ b/src/icesat2_tracks/analysis_db/B02_make_spectra_gFT.py @@ -68,24 +68,25 @@ def run_B02_make_spectra_gFT( """ TODO: add docstring """ - with suppress_stdout(verbose): - track_name, batch_key, _ = io.init_from_input( - [ - None, - track_name, - batch_key, - ID_flag, - ] # init_from_input expects sys.argv with 4 elements - ) - - kargs = { - "track_name": track_name, - "batch_key": batch_key, - "ID_flag": ID_flag, - "output_dir": output_dir, - } - report_input_parameters(**kargs) + track_name, batch_key, _ = io.init_from_input( + [ + None, + track_name, + batch_key, + ID_flag, + ] # init_from_input expects sys.argv with 4 elements + ) + + kargs = { + "track_name": track_name, + "batch_key": batch_key, + "ID_flag": ID_flag, + "output_dir": output_dir, + } + report_input_parameters(**kargs) + + with suppress_stdout(verbose): hemis, batch = batch_key.split("_") workdir, plotsdir = update_paths_mconfig(output_dir, mconfig)