From d1fad83c94f1d544ac45d0e4e3f5d6f13dfe4b9e Mon Sep 17 00:00:00 2001
From: spencer <swilbur@usgs.gov>
Date: Tue, 26 Dec 2023 12:37:46 -0700
Subject: [PATCH] Resolved comments regarding previous merge request.

---
 geomagio/edge/IRISFactory.py | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/geomagio/edge/IRISFactory.py b/geomagio/edge/IRISFactory.py
index 64bd54b9..55e777fb 100644
--- a/geomagio/edge/IRISFactory.py
+++ b/geomagio/edge/IRISFactory.py
@@ -151,7 +151,7 @@ class IRISFactory(MiniSeedFactory):
             TimeseriesUtility.pad_and_trim_trace(
                 trace=data[0], starttime=starttime, endtime=endtime
             )
-        # Beneath is necessary code to check the reported azimuth 
+        # Beneath is necessary code to check the reported azimuth
         # for the LF1 (E or Y) and LF2 (H or X) channels and determine if intstrument axes have been reversed.
         azi, dip = self._get_orientations(data[0], starttime)
 
@@ -238,7 +238,6 @@ class IRISFactory(MiniSeedFactory):
             network=trace.stats.network,
             location=trace.stats.location,
         )
-       
 
         FDSN = FDSNClient("IRIS")
         inv = FDSN.get_stations(
@@ -248,20 +247,16 @@ class IRISFactory(MiniSeedFactory):
             level="channel",
         )
 
-
         # Construct the channel code using the current trace's information
-        channel_code = (
-            f"{sncl.network}.{sncl.station}.{sncl.location}.{sncl.channel}"
-        )
+        channel_code = f"{sncl.network}.{sncl.station}.{sncl.location}.{sncl.channel}"
 
         # Get orientation for the constructed channel code and time
         orient = inv.get_orientation(channel_code, starttime)
 
-
         azimuth = orient["azimuth"]
         dip = orient["dip"]
 
-            # Return both azimuth and dip
+        # Return both azimuth and dip
         return azimuth, dip
 
         return 0.0  # Default azimuth if metadata is not available
-- 
GitLab