Commit fe0251ce authored by mibaumgartner's avatar mibaumgartner
Browse files

hydra >1.0 update

parent 61d46a7f
......@@ -34,7 +34,7 @@ def convert_raw(task, overwrite, ov):
new_task_name_full = f"Task{task_num}FG_{task_name}"
cfg = compose(task, "config.yaml", overrides=ov if ov is not None else [])
print(cfg.pretty())
print(cfg)
source_splitted_dir = Path(cfg["host"]["splitted_4d_output_dir"])
target_splitted_dir = Path(str(source_splitted_dir).replace(task_name_full, new_task_name_full))
......
......@@ -170,7 +170,7 @@ def main():
for task in tasks:
cfg = compose(task, "config.yaml", overrides=ov if ov is not None else [])
print(cfg.pretty())
print(cfg)
splitted_dir = Path(cfg["host"]["splitted_4d_output_dir"])
......
......@@ -39,7 +39,7 @@ if __name__ == '__main__':
for task in tasks:
cfg = compose(task, "config.yaml", overrides=[])
print(cfg.pretty())
print(cfg)
splitted_dir = Path(cfg["host"]["splitted_4d_output_dir"])
for postfix in ["Tr", "Ts"]:
......
......@@ -92,5 +92,5 @@ if __name__ == '__main__':
_ov = copy.deepcopy(ov) if ov is not None else []
cfg = compose(task, "config.yaml", overrides=ov if ov is not None else [])
print(cfg.pretty)
print(cfg)
run(cfg, target_dir, stuff=stuff)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment