diff --git a/notebooks/example_config.yaml b/notebooks/example_config.yaml index fe0d7e5..74e0643 100644 --- a/notebooks/example_config.yaml +++ b/notebooks/example_config.yaml @@ -1,4 +1,3 @@ -# Setting `base_path` redirects everything else from there out_path: "../results" data_path: "../data/" # this needs to be changed based on where you want to store your own data diff --git a/src/concordia/settings.py b/src/concordia/settings.py index a4710f5..ac1e06a 100644 --- a/src/concordia/settings.py +++ b/src/concordia/settings.py @@ -51,22 +51,16 @@ class Settings: @staticmethod def resolve_paths(config): - base_path = Path(config["base_path"]) if "base_path" in config else None - def expand(path): if path[0] == "$": reference, relative = path[1:].split("/", 1) return expand(config[reference]) / relative - if base_path is not None: - return (base_path / path).expanduser() - return Path(path).expanduser() expanded = { key: (expand(val) if key.endswith("_path") else val) for key, val in config.items() - if key != "base_path" } # Special treatment for path entry in regionmappings