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
Good afternoon. I am trying to create the initial conditions for swan model using the TUFLOW plugin. But I am getting an error in python-datetime.
An error has occurred while executing Python code:
TypeError: unsupported operand type(s) for -: 'int' and 'datetime.datetime'
Traceback (most recent call last):using
File "/home/alves/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/swangis/swangis/ui.py", line 1435, in buildRun
builder.buildRun(timeStart, timeEnd)
File "/home/alves/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/swangis/swangis/swan.py", line 970, in buildRun
writer(self.windSource, model.windFile, model)
File "/home/alves/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/swangis/swangis/swan.py", line 1110, in >writeWindGridBc
t = t * 3600 + datenum((1900, 1, 1))
^^^^^^^^^^^^^^^^^^^^^
File "/home/alves/.local/share/QGIS/QGIS3/profiles/default/python/plugins/tuflow/swangis/swangis/mdatetime.py", line 143, in datenum
delta = in_array[ii] - epoch
~~~~~~~~~~~~~^~~~~~~
TypeError: unsupported operand type(s) for -: 'int' and 'datetime.datetime'
I’ve made some recent fixes to enforce the date format entered on the Swan Model Builder dialogue but I haven't yet pushed these across to GitHub. It may not fix your specific issue, but could you please try the following for me:
Good afternoon. I am trying to create the initial conditions for swan model using the TUFLOW plugin. But I am getting an error in python-datetime.
The text was updated successfully, but these errors were encountered: