FLO-2DSoftware / qgis-flo-2d-plugin

A plugin for pre-processing/post-processing FLO-2D models
5 stars 7 forks source link

Vertices group #1345

Closed FLO-2DKaren closed 2 weeks ago

FLO-2DKaren commented 1 month ago

Import / Export the Vertices group in the inp file. Import data. Export data comes from links layers. Look if swmm.io has vertices code.

rpachaly commented 1 month ago

Started working on this.

rpachaly commented 1 month ago

The vertices code is almost ready. I found a bug that it is not importing one junction on that UEFCC project.

@FLO-2DKaren do you have another project that have VERTICES?

Since I got this error with the UEFCC, I want to do more testing.

FLO-2DKaren commented 1 month ago

@FLO-2DNoemi

Noemi,

Does Metro have VERTICES?

rpachaly commented 1 month ago

It is done. Please, see the video:

https://flo-2d.sharefile.com/d-s36c0f6b420404713838db06c37d9aeb0

On PL https://github.com/FLO-2DSoftware/qgis-flo-2d-plugin/pull/1366/

FLO-2DKaren commented 4 weeks ago

Might not be an issue but I got this error when I loaded this plugin.

SyntaxError: expected 'except' or 'finally' block Traceback (most recent call last): File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 426, in _startPlugin plugins[packageName] = package.classFactory(iface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\flo2d__init__.py", line 19, in classFactory from .flo2d import Flo2D File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\flo2d\flo2d.py", line 99, in from .gui import dlg_settings, f2d_main_widget File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\flo2d\gui\f2d_main_widget.py", line 25, in from .storm_drain_editor_widget import StormDrainEditorWidget File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\flo2d\gui\storm_drain_editor_widget.py", line 77, in from ..flo2d_ie.swmm_io import StormDrainProject File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\flo2d\flo2d_ie\swmm_io.py", line 1078

self.uc.show_error("ERROR 241121.0529: Reading pump curves from SWMM input data failed!", e)

                                                                                                  ^

SyntaxError: expected 'except' or 'finally' block

FLO-2DKaren commented 4 weeks ago

@FLO-2DNoemi Do you happen to have the grid system for those? We can't import them without building a dataset first. Load them through sharefile if you have them.

FLO-2DKaren commented 4 weeks ago

@FLO-2DNoemi I'll share that link privately. This repo is open to anyone.

FLO-2DKaren commented 4 weeks ago

I will take all of Noemi's projects and port them into a geopackage so we can test imports.