Skip to content

Commit

Permalink
Merge pull request #84 from sbintuitions/feature/save_config
Browse files Browse the repository at this point in the history
[Feature] update save config file
  • Loading branch information
lsz05 authored Nov 21, 2024
2 parents 3a08ca8 + c10189f commit ccadd5d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/jmteb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ def main(
if len(args.evaluators) == 0:
raise ValueError("No evaluator is selected. Please check the config file or the command line arguments.")

# save config as yaml
parser.save(
args,
Path(args.save_dir) / "jmteb_config.yaml",
format="yaml",
overwrite=True,
multifile=False,
skip_check=True,
)

args = parser.instantiate_classes(args)
if isinstance(args.evaluators, str):
raise ValueError(
Expand Down

0 comments on commit ccadd5d

Please sign in to comment.