From 7cd5a73944ba92f3bed6144daa7d13f536a22c89 Mon Sep 17 00:00:00 2001
From: spencer <swilbur@usgs.gov>
Date: Thu, 27 Apr 2023 11:37:42 -0600
Subject: [PATCH] changed the port from 2061 to 22061 for data.py,
 MiniseedFactory.py and MiniseedInputCllient.py

---
 geomagio/api/ws/data.py              | 2 +-
 geomagio/edge/MiniSeedFactory.py     | 2 +-
 geomagio/edge/MiniSeedInputClient.py | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/geomagio/api/ws/data.py b/geomagio/api/ws/data.py
index e6581a2f4..7fe17117b 100644
--- a/geomagio/api/ws/data.py
+++ b/geomagio/api/ws/data.py
@@ -36,7 +36,7 @@ def get_data_factory(
         SamplingPeriod.DAY,
     ]:
         factory = MiniSeedFactory(
-            host=host, port=int(os.getenv("DATA_MINISEED_PORT", "2061"))
+            host=host, port=int(os.getenv("DATA_MINISEED_PORT", "22061"))
         )
     elif sampling_period in [SamplingPeriod.SECOND, SamplingPeriod.MINUTE]:
         factory = EdgeFactory(
diff --git a/geomagio/edge/MiniSeedFactory.py b/geomagio/edge/MiniSeedFactory.py
index f7a8ac839..9f040d3da 100644
--- a/geomagio/edge/MiniSeedFactory.py
+++ b/geomagio/edge/MiniSeedFactory.py
@@ -70,7 +70,7 @@ class MiniSeedFactory(TimeseriesFactory):
     def __init__(
         self,
         host: str = "edgecwb.usgs.gov",
-        port: int = 2061,
+        port: int = 22061,
         write_port: int = 7974,
         observatory: Optional[str] = None,
         channels: Optional[List[str]] = None,
diff --git a/geomagio/edge/MiniSeedInputClient.py b/geomagio/edge/MiniSeedInputClient.py
index a25d31ce8..eb1b87f35 100644
--- a/geomagio/edge/MiniSeedInputClient.py
+++ b/geomagio/edge/MiniSeedInputClient.py
@@ -25,7 +25,7 @@ class MiniSeedInputClient(object):
         Floating point precision for output data
     """
 
-    def __init__(self, host, port=2061, encoding="float32"):
+    def __init__(self, host, port=22061, encoding="float32"):
         self.host = host
         self.port = port
         self.encoding = encoding
-- 
GitLab