From a3109caaf0ff47b4cfd6b9a94d3bdf94f44656f4 Mon Sep 17 00:00:00 2001
From: spencer <swilbur@usgs.gov>
Date: Thu, 27 Feb 2025 11:07:54 -0700
Subject: [PATCH] Added a default sampling period of Minute to the data.py
 file. This will allow users to leave sampling period blank in data endpoint.

---
 geomagio/api/ws/data.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geomagio/api/ws/data.py b/geomagio/api/ws/data.py
index 47971b27..d2dfc696 100644
--- a/geomagio/api/ws/data.py
+++ b/geomagio/api/ws/data.py
@@ -76,7 +76,7 @@ def get_data_query(
         " NOTE: when using 'iaga2002' output format, a maximum of 4 elements is allowed",
     ),
     sampling_period: Union[SamplingPeriod, float] = Query(
-        None,
+        SamplingPeriod.MINUTE,
         title="data rate",
         description="Interval in seconds between values.",
     ),
-- 
GitLab