diff --git a/geomagio/processing/make_iaga.py b/geomagio/processing/make_iaga.py index ebe596652a151f8a8e2be6a453e043cb18ce75cf..04cdb4d04cb813ae168ddb76ded94f880e387b53 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()