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
4 stars 1 forks source link

`precipitation` bug #291

Closed barneydobson closed 1 month ago

barneydobson commented 1 month 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"
        )