Code Monkey home page Code Monkey logo

Comments (12)

vmora avatar vmora commented on September 25, 2024

Have you got a log file under "u'C:\Users\pc04.qgis2\processing\outputs" ?

from qgis-swmm.

vmora avatar vmora commented on September 25, 2024

Normally you should have the generated swmm input file in there too.

from qgis-swmm.

gmusumeci avatar gmusumeci commented on September 25, 2024

I uninstalled the plugin then reinstalled it
Running a new simulation I get the following error:

there were errors, look into logs for details See log for more details

Now in the output folder
I have swmm.inp
I have no log file

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:
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 0) 0.0

The date in tables linked to postgres are as follows:

1988-01-01T00:00:00

from qgis-swmm.

vmora avatar vmora commented on September 25, 2024

Can you check if there is something strange in the swmm.inp, in the TIMESERIES section

from qgis-swmm.

gmusumeci avatar gmusumeci commented on September 25, 2024

This is my swmm.inp, TIMESERIES section

[TIMESERIES]
;name datetime value
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 0) 0.0
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 15) 40.0
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 0) 40.0
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 15) 0.0
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 12, 0) 0.0
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 0) 0.0
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 15) 45.0
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 0) 45.0
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 15) 0.0
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 12, 0) 0.0
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 0) 0.0
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 15) 50.0
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 0) 50.0
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 15) 0.0
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 12, 0) 0.0

from qgis-swmm.

vmora avatar vmora commented on September 25, 2024

The date as not been converted to string, does the date otherwise correspond to the dates you have entered in your time series ?

from qgis-swmm.

vmora avatar vmora commented on September 25, 2024

Where do your timeseries come from ?

I suspect the plugin expects strings for dates, not QDateTime.

from qgis-swmm.

vmora avatar vmora commented on September 25, 2024

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

from qgis-swmm.

gmusumeci avatar gmusumeci commented on September 25, 2024

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

from qgis-swmm.

gmusumeci avatar gmusumeci commented on September 25, 2024

Now error are of this kind:
ERROR 211: invalid number 01/01/1988 at line 113 of [TIMESERIES] section:
INFLOW@82309 0.0 01/01/1988 00:00

The input file is:
[TIMESERIES]
;name value datetime
INFLOW@82309 0.0 01/01/1988 00:00
INFLOW@82309 40.0 01/01/1988 00:15
...omissis....

from qgis-swmm.

vmora avatar vmora commented on September 25, 2024

the date format is YYYY-mm-dd HH:MM:ss

from qgis-swmm.

gmusumeci avatar gmusumeci commented on September 25, 2024

In my DB the date format is correct: YYYY-mm-dd HH:MM:ss.

input

from qgis-swmm.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.