Skip to content
Snippets Groups Projects
Commit bb4c67c2 authored by Wernle, Alexandra Nicole's avatar Wernle, Alexandra Nicole
Browse files

Call IAGA2002Factory() differently.

parent d8c74d6a
No related branches found
No related tags found
1 merge request!247make_iaga app and BIQParserFactory
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment