Skip to content

Commit

Permalink
fix assemble simulation cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbuehlmann committed Oct 15, 2024
1 parent 5512992 commit f68b43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haccytrees/coretrees/assemble/coretrees_assembly_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]]
Expand Down

0 comments on commit f68b43a

Please sign in to comment.