You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error below (first screenshot) rises for one model area, while the notebooks for other model areas do not encounter the error. Further research shows this occurs in hydrolib.dhydamo.core.drtc.py (second screenshot). As far as I can tell, the problem resides in the fact that our universal weir table is empty. However, it seems impossible then to complete the script if my geopackges contains orifices but no universal weirs, but this is often the case. As long as I am not overlooking anything, my suggestion would be to add 'and not self.hydamo.structures.uweirs_df.empty' to the elif statement of line 164, and possibly something similar tailored for line 168.
The text was updated successfully, but these errors were encountered:
Thank you for your reply, and the notification that you will take up the issue. I figured I would share my current workaround. It turned out more extensive than I expected to. The attached code snippet replaces the code in the 'if-statement' (149-185), although actual changes start from line 160. workaround_drtc.txt
The error below (first screenshot) rises for one model area, while the notebooks for other model areas do not encounter the error. Further research shows this occurs in hydrolib.dhydamo.core.drtc.py (second screenshot). As far as I can tell, the problem resides in the fact that our universal weir table is empty. However, it seems impossible then to complete the script if my geopackges contains orifices but no universal weirs, but this is often the case. As long as I am not overlooking anything, my suggestion would be to add 'and not self.hydamo.structures.uweirs_df.empty' to the elif statement of line 164, and possibly something similar tailored for line 168.
The text was updated successfully, but these errors were encountered: