Skip to content

Commit

Permalink
refactor: display input args B02_make_spectra_gFT.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaniaguam committed Feb 9, 2024
1 parent 8f56be8 commit 1a3ac31
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions src/icesat2_tracks/analysis_db/B02_make_spectra_gFT.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a3ac31

Please sign in to comment.