-
Notifications
You must be signed in to change notification settings - Fork 19
swmm no output #9
Comments
Have you got a log file under "u'C:\Users\pc04.qgis2\processing\outputs" ? |
Normally you should have the generated swmm input file in there too. |
I uninstalled the plugin then reinstalled it there were errors, look into logs for details See log for more details Now in the output folder I have an output file with many error of this kind: ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 120 of [TIMESERIES] section: The date in tables linked to postgres are as follows: 1988-01-01T00:00:00 |
Can you check if there is something strange in the swmm.inp, in the TIMESERIES section |
This is my swmm.inp, TIMESERIES section [TIMESERIES] |
The date as not been converted to string, does the date otherwise correspond to the dates you have entered in your time series ? |
Where do your timeseries come from ? I suspect the plugin expects strings for dates, not QDateTime. |
Found it, its in https://github.com/Oslandia/qgis-swmm/blob/master/SwmmAlgorithm.py#L210 We should test the type of v and act accordingly to handle this case. PR welcome if you are willing to code, otherwise you can convert your input data to string instead of QDateTime |
My timeseries is stored in postgreSQL. The format is "datetime timestamp without time zone" Now I try to convert to text to see if it works |
Now error are of this kind: The input file is: |
the date format is |
I edit the SwmmAlgorythm.py with the same kind of changes that are in the commit:
Oslandia/qgis-epanet@be1b5c6
I run the example getting the following error:
[Error 2] Impossibile trovare il file specificato: u'C:\Users\pc04.qgis2\processing\outputs\swmm.out' See log for more details
I tried to create an empty file 'swmn.out' in \processing\outputs
The processing runs but output tables and vectors are empty
I'm running Qgis 2.14 on Windows7 64bit
The text was updated successfully, but these errors were encountered: