From e21f21d97df895d645ab0aa3783b3f19bc9fa9f0 Mon Sep 17 00:00:00 2001 From: Carlos Paniagua Date: Wed, 7 Feb 2024 12:38:42 -0500 Subject: [PATCH] refactor: simply logic in update_paths_mconfig --- src/icesat2_tracks/clitools.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/icesat2_tracks/clitools.py b/src/icesat2_tracks/clitools.py index 3567a9a9..dd01a182 100644 --- a/src/icesat2_tracks/clitools.py +++ b/src/icesat2_tracks/clitools.py @@ -162,10 +162,9 @@ def report_input_parameters(heading: str = "** Input parameters:", **kwargs): def update_paths_mconfig(output_dir, mconfig): - if output_dir: - workdir, plotsdir = [ - Path(output_dir, mconfig["paths"][key]) for key in ["work", "plot"] - ] + workdir, plotsdir = [ + Path(output_dir, mconfig["paths"][key]) for key in ["work", "plot"] + ] return workdir, plotsdir