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 b0b6676 commit 7713980Copy full SHA for 7713980
src/diffpy/utils/parsers/loaddata.py
@@ -333,14 +333,4 @@ def _findDataBlocks(self):
333
return
334
335
336
-# End of class TextDataLoader
337
-
338
339
-def isfloat(s):
340
- """True if s is convertible to float."""
341
- try:
342
- float(s)
343
- return True
344
- except ValueError:
345
- pass
346
- return False
+# End of class TextDataLoader
src/diffpy/utils/parsers/validators.py
@@ -0,0 +1,8 @@
1
+def isnumber(s):
2
+ """True if s is convertible to float."""
3
+ try:
4
+ float(s)
5
+ return True
6
+ except ValueError:
7
+ pass
8
+ return False
0 commit comments