Skip to content

Commit

Permalink
Switch default flags for record
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmundGoodman committed Feb 25, 2024
1 parent a7d2ac2 commit fd2a141
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/hpc_multibench/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ def get_parser() -> ArgumentParser: # pragma: no cover
help="print but don't submit the generated sbatch files",
)
parser_record.add_argument(
"-n",
"--no-wait",
"-w",
"--wait",
action="store_true",
help="don't wait for the submitted jobs to finish to exit",
help="wait for the submitted jobs to finish to exit",
)
parser_record.add_argument(
"-c",
"--clobber",
"-nc",
"--no-clobber",
action="store_true",
help="delete any previous run results of the test benches",
help="don't delete any previous run results of the test benches",
)
_parser_report = sub_parsers.add_parser(
"report", help="report analysis about completed test bench runs"
Expand Down
4 changes: 2 additions & 2 deletions src/hpc_multibench/test_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def record(self, args: Namespace) -> None:
print(f"Recording data from test bench '{self.name}'")

# Optionally clobber directory
if args.clobber:
if not args.no_clobber:
rmtree(self.output_directory)

# Realise run configurations from list of instantiations
Expand Down Expand Up @@ -182,7 +182,7 @@ def record(self, args: Namespace) -> None:
if job_id is not None
]

if not args.no_wait:
if args.wait:
raise NotImplementedError("Waiting for queue not yet implemented")

def extract_metrics(self, output: str) -> dict[str, str] | None:
Expand Down

0 comments on commit fd2a141

Please sign in to comment.