User Forum of Software BASEMENT

BASEMENT
Basic Simulation Environment for computation of environmental flow and natural hazard simulation
Laboratory of Hydraulics, Hydrology and Glaciology (VAW)
ETH Zurich
Basement_Logo

You are not logged in.

#1 Yesterday 17:02:00

Loriann
User
Registered: 2023-07-05
Posts: 14

Point layer NULL values not accepted by BASEmesh 2.3 - Error message

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 (Yesterday 17:04:17)

Offline

Board footer

Powered by FluxBB