Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
b0da1910
Commit
b0da1910
authored
2 months ago
by
Shavers, Nicholas H
Browse files
Options
Downloads
Patches
Plain Diff
other half of __init__.py work...
parent
3467503d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!378
Covjson mvp
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geomagio/Controller.py
+3
-6
3 additions, 6 deletions
geomagio/Controller.py
with
3 additions
and
6 deletions
geomagio/Controller.py
+
3
−
6
View file @
b0da1910
...
...
@@ -7,9 +7,6 @@ from typing import List, Optional, Tuple, Union
from
obspy.core
import
Stream
,
UTCDateTime
from
geomagio.api.covjson.CovJSONFactory
import
CovJSONFactory
from
.algorithm
import
Algorithm
,
algorithms
,
AlgorithmException
,
FilterAlgorithm
from
.DerivedTimeseriesFactory
import
DerivedTimeseriesFactory
from
.PlotTimeseriesFactory
import
PlotTimeseriesFactory
...
...
@@ -27,7 +24,7 @@ from . import imfv283
from
.
import
temperature
from
.
import
vbf
from
.
import
xml
from
.
import
covjson
class
Controller
(
object
):
"""
Controller for geomag algorithms.
...
...
@@ -566,7 +563,7 @@ def get_input_factory(args):
elif
input_type
==
"
xml
"
:
input_factory
=
xml
.
XMLFactory
(
**
input_factory_args
)
elif
input_type
==
"
covjson
"
:
input_factory
=
CovJSONFactory
(
**
input_factory_args
)
input_factory
=
covjson
.
CovJSONFactory
(
**
input_factory_args
)
# wrap stream
if
input_stream
is
not
None
:
input_factory
=
StreamTimeseriesFactory
(
...
...
@@ -637,7 +634,7 @@ def get_output_factory(args):
elif
output_type
==
"
imfjson
"
:
output_factory
=
imfjson
.
IMFJSONFactory
(
**
output_factory_args
)
elif
output_type
==
"
covjson
"
:
output_factory
=
CovJSONFactory
(
**
output_factory_args
)
output_factory
=
covjson
.
CovJSONFactory
(
**
output_factory_args
)
elif
output_type
==
"
pcdcp
"
:
output_factory
=
pcdcp
.
PCDCPFactory
(
**
output_factory_args
)
elif
output_type
==
"
temperature
"
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment