larray-project / larray-editor

Graphical User Interface for LArray
GNU General Public License v3.0
2 stars 2 forks source link

ComparatorWidget tolerance is not tolerant #260

Closed gdementen closed 11 months ago

gdementen commented 1 year ago

It does not support numbers with a decimal point.

The problem is the QDoubleValidator uses the current locale, which on my computer is currently configured as fr_BE where the decimal separator is , and thus (silently!) refuses values like 0.1, but then we use ast.literal_eval to convert the string to a float value, so entering 0,1 does not work either (still silently).