Commit fdda2198 authored by benjaminpillot's avatar benjaminpillot
Browse files

Add isnan method

* Return False if value is None
parent d29f1f8c
......@@ -4,7 +4,7 @@
More detailed description.
"""
import math
import numpy as np
from collections import Collection
from itertools import chain, islice
......@@ -137,6 +137,13 @@ def grid(origin, resolution, size):
yield origin
def isnan(value):
try:
return np.isnan(value)
except TypeError:
return False
def lazyproperty(func):
name = '_lazy_' + func.__name__
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment