qgisred / QGISRed

GNU General Public License v2.0
23 stars 8 forks source link

Simulation too slow when exporting to inp #127

Open ibrahimax opened 3 months ago

ibrahimax commented 3 months ago

Hello,

I noticed a bug in the QGISRED extension. I tried to import an inp file which works without any problem, then I exported it without any modification. When I tried to export it, I noticed that the model became too slow and unusable.

Basically, I wanted to update a model by adding pipes when I noticed this problem.

Thanks for your help.

fmartine commented 3 months ago

Dear @ibrahimax,

There must be some difference between the initially imported INP and the one exported from QGISRed. You could compare the two INP files directly by visual inspection, but the format in which QGISRed exports the INP file does not follow a standard template, so direct comparison is difficult, especially if the network is large. We need to improve the INP file export template in the future.

Another option is to re-import the new INP file to another project. You can open each project in two different QGIS sessions and compare all similar themes two by two, including options, curves, controls etc., to find the differences. You can also use the EPANET graphical interface, and particularly the data browser, to make such a comparison.

A last option is to send me confidentially the INP file that causes this problem to my email address fmartine@hma.upv.es and I will try to find the cause in case something needs to be corrected in the QGISRed code.

Regards,

ibrahimax commented 3 months ago

Dear @ibrahimax,

There must be some difference between the initially imported INP and the one exported from QGISRed. You could compare the two INP files directly by visual inspection, but the format in which QGISRed exports the INP file does not follow a standard template, so direct comparison is difficult, especially if the network is large. We need to improve the INP file export template in the future.

Another option is to re-import the new INP file to another project. You can open each project in two different QGIS sessions and compare all similar themes two by two, including options, curves, controls etc., to find the differences. You can also use the EPANET graphical interface, and particularly the data browser, to make such a comparison.

A last option is to send me confidentially the INP file that causes this problem to my email address fmartine@hma.upv.es and I will try to find the cause in case something needs to be corrected in the QGISRed code.

Regards,

Thanks for the reply

you could try any model. just try importing it and then exporting it.