BASEMENTBasic Simulation Environment for computation of environmental flow and natural hazard simulationLaboratory of Hydraulics, Hydrology and Glaciology (VAW)ETH Zurich |
You are not logged in.
Pages: 1
Hi,
I think I've found a bug in basemesh: in a 2dm file I generated with basemesh, the nodes (lines starting with ND) are not ordered (#1 is not the first). Basement works like a charm, but qgis does not import the 2dm file as mesh layer.
I changed manually the order of the ND lines ordering them from 1 to the last and everything works!
Not sure if you want this to be fixed by QGIS or if it's easier to fix it with basemesh, but I'm sure you'd like to know it!
Cheers
Matteo
Offline
Hi Matteo
This should definitely be fixed in BASEmesh. Which version are you using?
Best
Matthias
Offline
Hi Matthias,
I am using the 1.4.5
Cheers
Offline
Hi Matteo
This issue should be solved now.
Best regards
Mathias
Offline
Great!
Thanks!
Matteo
Offline
Hi Matthias,
I believe you tried to sort the mesh elements ID with .sort(), am I right?
Because I get the error: AttributeError: 'dict_keys' object has no attribute 'sort'.
I had a look at the scripts (mesh.py and meshConversion.py, which I have under AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\BASEmesh\tools): with dictionaries you could use sorted(blablabla) instead of .sort() and the problem is solved!
Cheers,
Matteo
Last edited by Matteo Facchini (2020-04-20 17:30:31)
Offline
Sorry about that! Should be solved now! Thanks for the hint!
Offline
Pages: 1