Code Monkey home page Code Monkey logo

Comments (9)

vmora avatar vmora commented on June 17, 2024

Can you look at the .inp file that has been generated at the [TIMESERIES] section. There is apparently a problem there.

from qgis-swmm.

knraj avatar knraj commented on June 17, 2024

I have opened the swmm.imp file. By default the following error file with the following errors got displayed:
Also in the QGIS Processing section the following errors were displayed:
Uncaught error while executing algorithm
Traceback (most recent call last):
File "C:/PROGRA1/QGIS21.18/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", line 203, in execute
self.processAlgorithm(progress)
File "C:/Users/NAGARAJU/.qgis2/python/plugins\qgis-swmm\SwmmAlgorithm.py", line 324, in processAlgorithm
raise RuntimeError('There were errors, look into logs for details')
RuntimeError: There were errors, look into logs for details

The swmm.inp error file details:

Error Report for File C:\Users\NAGARAJU.qgis2\processing\outputs\swmm.inp

Error 201 at line 5:
[OPTIONS]
FLOW_UNITS CFS

Error 201 at line 6:
[OPTIONS]
INFILTRATION HORTON

Error 201 at line 7:
[OPTIONS]
FLOW_ROUTING DYNWAVE

Error 201 at line 8:
[OPTIONS]
START_DATE 01/01/1988

Error 201 at line 9:
[OPTIONS]
START_TIME 00:00:00

Error 201 at line 10:
[OPTIONS]
REPORT_START_DATE 01/01/1988

Error 201 at line 11:
[OPTIONS]
REPORT_START_TIME 00:00:00

Error 201 at line 12:
[OPTIONS]
END_DATE 01/01/1988

Error 201 at line 13:
[OPTIONS]
END_TIME 08:00:00

Error 201 at line 14:
[OPTIONS]
SWEEP_START 01/01

Error 201 at line 15:
[OPTIONS]
SWEEP_END 12/31

45 more errors found in file.

from qgis-swmm.

knraj avatar knraj commented on June 17, 2024

There is a dateformat incompatibility between Postgres database (where the dateformat appears correct) and the table loaded within QGIS. Now while running the simulation, I deselect timeseries, I get the following error:

Uncaught error while executing algorithm
Traceback (most recent call last):
File "C:/PROGRA1/QGIS21.18/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", line 203, in execute
self.processAlgorithm(progress)
File "C:/Users/NAGARAJU/.qgis2/python/plugins\qgis-swmm\SwmmAlgorithm.py", line 396, in processAlgorithm
feature['Time'] = convert_date(tbl[0])+' '+tbl[1]
File "C:/Users/NAGARAJU/.qgis2/python/plugins\qgis-swmm\SwmmAlgorithm.py", line 66, in convert_date
if not m : raise RuntimeError
RuntimeError

from qgis-swmm.

vmora avatar vmora commented on June 17, 2024

What do you mean by "deselect timeseries" ?

from qgis-swmm.

knraj avatar knraj commented on June 17, 2024

I have not selected the timeseries object as part of the simulation run.

from qgis-swmm.

vmora avatar vmora commented on June 17, 2024

I think it's mandatory because the case without timeseries is not handled.

from qgis-swmm.

knraj avatar knraj commented on June 17, 2024

If I select the timeseries the date format within QGIS is incompatible with the following format: YYYY-mm-dd HH:mm:ss. The timeseries table within QGIS has a different datetime format which I think the python program is not able to convert as it is not in the standard format.

from qgis-swmm.

vmora avatar vmora commented on June 17, 2024

Can't it be converted to the proper format ?

from qgis-swmm.

knraj avatar knraj commented on June 17, 2024

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.