summaryrefslogtreecommitdiff
path: root/lib/plotter.py
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-02-05 08:11:22 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-02-05 08:11:22 +0100
commita63afa58aa471b012161c7499bb6cbe489f62ce1 (patch)
tree7b1f463166c3b8d895fe3f704ba63e32f1102291 /lib/plotter.py
parentdca12474ab70843e4fc77c9e9cd3db57ad2ce364 (diff)
move float_or_nan to utils
Diffstat (limited to 'lib/plotter.py')
-rwxr-xr-xlib/plotter.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/plotter.py b/lib/plotter.py
index e4d9926..2398c12 100755
--- a/lib/plotter.py
+++ b/lib/plotter.py
@@ -6,14 +6,6 @@ import matplotlib.pyplot as plt
import re
from matplotlib.patches import Polygon
-def float_or_nan(n):
- if n == None:
- return np.nan
- try:
- return float(n)
- except ValueError:
- return np.nan
-
def flatten(somelist):
"""
Flatten a list.