Closed barneydobson closed 1 month ago
config.get("address_overrides", {}).get("precipitation", Path()) returns True if both are empty... in swmmanywhere.py
config.get("address_overrides", {}).get("precipitation", Path())
True
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" )
config.get("address_overrides", {}).get("precipitation", Path())
returnsTrue
if both are empty... inswmmanywhere.py