Skip to content

Commit

Permalink
src/ospx/cli/ospCaseBuilder.py : renamed 'case_file' to 'case_dict_file'
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaasRostock committed Jan 18, 2025
1 parent adb3ecb commit 6b32d23
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ospx/cli/ospCaseBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
def _argparser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
prog="ospCaseBuilder",
usage="%(prog)s case_file [options [args]]",
usage="%(prog)s case_dict_file [options [args]]",
epilog="_________________ospCaseBuilder___________________",
prefix_chars="-",
add_help=True,
description="Builds the OSP-specific configuration files needed to run an OSP (co-)simulation case.",
)

_ = parser.add_argument(
"case_file",
metavar="case_file",
"case_dict_file",
metavar="case_dict_file",
type=str,
nargs="?",
help="name of the dict file containing the OSP simulation case configuration.",
Expand Down Expand Up @@ -120,24 +120,24 @@ def main() -> None:
graph: bool = args.graph
clean: bool = args.clean

case_file: Path = Path(args.case_file)
case_dict_file: Path = Path(args.case_dict_file)

# Check whether case dict file exists
if not case_file.exists():
logger.error(f"ospCaseBuilder.py: File {case_file} not found.")
if not case_dict_file.exists():
logger.error(f"ospCaseBuilder.py: File {case_dict_file} not found.")
return

logger.info(
f"Start ospCaseBuilder.py with following arguments:\n"
f"\t case_file: \t\t{case_file}\n"
f"\t case_dict_file: \t\t{case_dict_file}\n"
f"\t inspect: \t\t\t\t{inspect}\n"
f"\t graph: \t\t\t{graph}\n"
f"\t clean: \t\t\t{clean}\n"
)

# Invoke API
OspCaseBuilder.build(
case_file=case_file,
case_dict_file=case_dict_file,
inspect=inspect,
graph=graph,
clean=clean,
Expand Down

0 comments on commit 6b32d23

Please sign in to comment.