summaryrefslogtreecommitdiff
path: root/lib/dfatool.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dfatool.py')
-rwxr-xr-xlib/dfatool.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/dfatool.py b/lib/dfatool.py
index c5b58ee..93641d0 100755
--- a/lib/dfatool.py
+++ b/lib/dfatool.py
@@ -44,15 +44,6 @@ def soft_cast_int(n):
except ValueError:
return n
-def float_or_nan(n):
- """Convert to float (if numeric) or NaN."""
- if n == None:
- return np.nan
- try:
- return float(n)
- except ValueError:
- return np.nan
-
def vprint(verbose, string):
"""
Print string if verbose.