From bb4c67c27b86e0d3ab2837d85196dc3b3aa61cfb Mon Sep 17 00:00:00 2001
From: Alex Wernle <awernle@usgs.gov>
Date: Tue, 22 Aug 2023 10:13:15 -0600
Subject: [PATCH]  Call IAGA2002Factory() differently.

---
 geomagio/processing/make_iaga.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/geomagio/processing/make_iaga.py b/geomagio/processing/make_iaga.py
index ebe59665..04cdb4d0 100644
--- a/geomagio/processing/make_iaga.py
+++ b/geomagio/processing/make_iaga.py
@@ -10,7 +10,7 @@ from pathlib import Path
 import typer
 
 from ..metadata import Metadata, MetadataFactory, MetadataCategory
-from ..biq.BIQParserFactory import BIQParser
+from ..biq.BIQFactory import BIQParser
 from ..iaga2002.IAGA2002Factory import IAGA2002Factory
 
 
@@ -225,9 +225,7 @@ def write_iaga_file(stream: Stream, station: str, channels: list, out_directory:
 
         # TODO: Add Edge and/or Intermagnet as upload options?
         # write file using factory, can use sys.stdout
-        IAGA2002Factory.write_file(
-            self=IAGA2002Factory, fh=fh, timeseries=day_stream, channels=channels
-        )
+        IAGA2002Factory().write_file(fh=fh, timeseries=day_stream, channels=channels)
         fh.close()
 
 
-- 
GitLab