From f68b43a043592d6fbf5bbf592a23615179c4b08c Mon Sep 17 00:00:00 2001 From: Michael Buehlmann Date: Tue, 15 Oct 2024 16:32:21 +0000 Subject: [PATCH] fix assemble simulation cfg --- haccytrees/coretrees/assemble/coretrees_assembly_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haccytrees/coretrees/assemble/coretrees_assembly_config.py b/haccytrees/coretrees/assemble/coretrees_assembly_config.py index 6ad3c13..c2f6635 100644 --- a/haccytrees/coretrees/assemble/coretrees_assembly_config.py +++ b/haccytrees/coretrees/assemble/coretrees_assembly_config.py @@ -23,7 +23,7 @@ class CoretreesAssemblyConfig: def parse_config(cls, config_path: str) -> "CoretreesAssemblyConfig": with open(config_path, "rb") as fp: config = toml.load(fp) - if config["simulation"]["simulation"][:-4] == ".cfg": + if config["simulation"]["simulation"][-4:] == ".cfg": simulation = Simulation.parse_config(config["simulation"]["simulation"]) else: simulation = Simulation.simulations[config["simulation"]["simulation"]]