| 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.
Hi,
I have upgraded the BASEmesh v2.3 plugin in QGIS v3.40.7-Bratislava.
For the generation of the quality mesh, I used to have a point layer with this structure (attribute table) :
MATID MaxArea Hole
1 2 NULL
2 5 NULL
NULL NULL 1
etc.
Now, i get this error message :
An error has occurred while executing Python code:
TypeError: float() argument must be a string or a real number, not 'QVariant'
Traceback (most recent call last):
File "C:\Users/LC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\basemesh_v2\gui\qualmesh.py", line 160, in accept
region_markers, hole_markers = process_markers(
^^^^^^^^^^^^^^^^
File "C:\Users/LC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\basemesh_v2\utils.py", line 515, in process_markers
max_area = None if raw_max_area is None else float(raw_max_area)
^^^^^^^^^^^^^^^^^^^
TypeError: float() argument must be a string or a real number, not 'QVariant'
Python version: 3.12.10 (main, Apr 9 2025, 08:14:47) [MSC v.1943 64 bit (AMD64)]
QGIS version: 3.40.7-Bratislava Bratislava, 91d544fdd4
This error message disappears when I replace the NULL values by 0.
Why does the plugin not accept the NULL values like it used to ?
Thanks in advance.
Last edited by Loriann (2026-09-02 17:04:17)
Offline
Hi Loriann,
Thanks for the bug report. We will fix this in the next release.
Best regards,
Matthias
Offline
This is now fixed in the latest released version BASEmesh 2.3.1.
Offline