We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5681d9d commit 97a4f70Copy full SHA for 97a4f70
src/diffpy/utils/parsers/loaddata.py
@@ -103,10 +103,9 @@ def countcolumnsvalues(line):
103
if flag:
104
name = hpair[0]
105
value = hpair[1]
106
- # can be stored as float if only one decimal
107
- if hpair[1].replace(".", "", 1).isnumeric():
108
- value = float(hpair[1])
109
# check if data value should be stored as float
+ if isfloat(hpair[1]):
+ value = float(hpair[1])
110
hdata.update({name: value})
111
# continue search for the start of datablock
112
fpos = (fpos[1], fpos[1] + len(line))
0 commit comments