Skip to content

Commit

Permalink
formatted with ruff+black
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfromearth committed Sep 19, 2023
1 parent 95f6cfc commit 950c1b7
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 154 deletions.
30 changes: 22 additions & 8 deletions ncompare/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,34 @@

def _cli() -> argparse.Namespace:
"""Parse input arguments from the command line."""
parser = argparse.ArgumentParser(description="Compare the variables contained within two different NetCDF datasets")
parser = argparse.ArgumentParser(
description="Compare the variables contained within two different NetCDF datasets"
)
parser.add_argument("nc_a", help="First NetCDF file")
parser.add_argument("nc_b", help="First NetCDF file")
parser.add_argument("-v", "--comparison_var_name", help="Comparison variable name")
parser.add_argument("-g", "--comparison_var_group", help="Comparison variable group")
parser.add_argument("--file-text", help="A text file to which the output will be written.")
parser.add_argument("--file-csv", help="A csv (comma separated values) file to which the output will be written.")
parser.add_argument(
"--file-csv",
help="A csv (comma separated values) file to which the output will be written.",
)
parser.add_argument("--file-xlsx", help="An Excel file to which the output will be written.")
parser.add_argument("--no-color", action="store_true", default=False,
help="Turn off all colorized output")
parser.add_argument("--show-attributes", action="store_true", default=False,
help="Include variable attributes in comparison")
parser.add_argument("--show-chunks", action="store_true", default=False,
help="Include chunk sizes in the table that compares variables")
parser.add_argument(
"--no-color", action="store_true", default=False, help="Turn off all colorized output"
)
parser.add_argument(
"--show-attributes",
action="store_true",
default=False,
help="Include variable attributes in comparison",
)
parser.add_argument(
"--show-chunks",
action="store_true",
default=False,
help="Include chunk sizes in the table that compares variables",
)

return parser.parse_args()

Expand Down
Loading

0 comments on commit 950c1b7

Please sign in to comment.