Skip to content

Commit

Permalink
Merge pull request #14 from mjreno/cleanup_ipkg
Browse files Browse the repository at this point in the history
Cleanup ipkg script
  • Loading branch information
mjreno authored Jul 25, 2024
2 parents 7dae759 + 2bc0cf1 commit c062953
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions spec/make_ipkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ def warn(self):

if __name__ == "__main__":
parser = argparse.ArgumentParser(
prog="Convert DFN files to TOML files",
prog="Convert TOML files to FloPy package files",
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog=textwrap.dedent(
"""\
Generate TOML from DFN files. This script converts
definition (DFN) files to TOML specification files,
each representing a parameter set for a particular
input definition.
Generate FloPy package files from TOML files. This
script converts TOML files to package specification
files, each representing a parameter set for a
particular input definition.
"""
),
)
Expand All @@ -119,8 +119,7 @@ def warn(self):
"--toml",
required=False,
default=TOML_PATH,
help="Path to a toml file, or to a text or YAML file "
"listing DFN files (one per line)",
help="Path to a toml file or directory containing toml files",
)
parser.add_argument(
"-o",
Expand Down Expand Up @@ -151,7 +150,7 @@ def warn(self):

assert all(
p.is_file() for p in tomls
), f"DFNs not found: {[p for p in dfns if not p.is_file()]}"
), f"TOMLs not found: {[p for p in tomls if not p.is_file()]}"

if verbose:
print("Converting TOMLs:")
Expand Down

0 comments on commit c062953

Please sign in to comment.