diff --git a/geomagio/algorithm/SqDistAlgorithm.py b/geomagio/algorithm/SqDistAlgorithm.py index 1253c471b3fbab3a110e48c5f02ad58dab8c72c7..169aad38a25ac2cf0540e4b5be79309cac0e7a03 100644 --- a/geomagio/algorithm/SqDistAlgorithm.py +++ b/geomagio/algorithm/SqDistAlgorithm.py @@ -329,7 +329,7 @@ class SqDistAlgorithm(Algorithm): if l0 is None: l = np.nanmean(yobs[0:int(m)]) if l is np.nan: - l = 0. + l = 0. else: l = l0 if not np.isscalar(l0):