From cf181d0100893e7519099a1aeecf170add9b502d Mon Sep 17 00:00:00 2001
From: pcain-usgs <pcain@usgs.gov>
Date: Thu, 16 Apr 2020 11:02:36 -0600
Subject: [PATCH] Change residual default value to 0, rebase

---
 geomagio/residual/Measurement.py |  2 +-
 geomagio/residual/measurement.py | 24 ------------------------
 2 files changed, 1 insertion(+), 25 deletions(-)
 delete mode 100644 geomagio/residual/measurement.py

diff --git a/geomagio/residual/Measurement.py b/geomagio/residual/Measurement.py
index 3b17aa803..c8807e51c 100644
--- a/geomagio/residual/Measurement.py
+++ b/geomagio/residual/Measurement.py
@@ -20,6 +20,6 @@ class Measurement(BaseModel):
 
     measurement_type: MeasurementType
     angle: float = 0
-    residual: float = None
+    residual: float = 0
     time: Optional[UTCDateTime] = None
     mask: bool = None
diff --git a/geomagio/residual/measurement.py b/geomagio/residual/measurement.py
deleted file mode 100644
index 03d968261..000000000
--- a/geomagio/residual/measurement.py
+++ /dev/null
@@ -1,24 +0,0 @@
-from typing import Optional
-
-from obspy.core import UTCDateTime
-from pydantic import BaseModel
-
-from .. import pydantic_utcdatetime
-from .MeasurementType import MeasurementType
-
-
-class Measurement(BaseModel):
-    """One angle and time measurement with optional residual.
-
-    Attributes
-    ----------
-    measurement_type: type of measurement.
-    angle: measured angle, decimal degrees.
-    residual: residual at time of measurement.
-    time: when measurement was taken.
-    """
-
-    measurement_type: MeasurementType
-    angle: float = 0
-    residual: float = 0
-    time: Optional[UTCDateTime] = None
-- 
GitLab