ImperialCollegeLondon / SWMManywhere

SWMManywhere is used to derive and simulate a sewer network anywhere in the world
https://imperialcollegelondon.github.io/SWMManywhere/
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

`precipitation` bug #291

Closed barneydobson closed 5 days ago

barneydobson commented 5 days ago

config.get("address_overrides", {}).get("precipitation", Path()) returns True if both are empty... in swmmanywhere.py

    if not Path(
        config.get("address_overrides", {}).get("precipitation", Path())
    ).exists():
        print('here')
        config["address_overrides"] = config.get("address_overrides", {})
        config["address_overrides"]["precipitation"] = (
            Path(__file__).parent / "defs" / "storm.dat"
        )