Skip to content

Commit

Permalink
refactor: simply logic in update_paths_mconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaniaguam authored Feb 7, 2024
1 parent ce4483a commit e21f21d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/icesat2_tracks/clitools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e21f21d

Please sign in to comment.