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
f8cda2b6
Commit
f8cda2b6
authored
3 years ago
by
Cain, Payton David
Browse files
Options
Downloads
Patches
Plain Diff
update realtime_filter factories
parent
494a83e0
No related branches found
No related tags found
2 merge requests
!146
Release CMO metadata to production
,
!139
use factory module for hour/day factories
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geomagio/processing/obsrio.py
+4
-5
4 additions, 5 deletions
geomagio/processing/obsrio.py
with
4 additions
and
5 deletions
geomagio/processing/obsrio.py
+
4
−
5
View file @
f8cda2b6
...
@@ -3,7 +3,6 @@ from typing import Optional
...
@@ -3,7 +3,6 @@ from typing import Optional
import
typer
import
typer
from
..algorithm
import
Algorithm
,
FilterAlgorithm
from
..algorithm
import
Algorithm
,
FilterAlgorithm
from
..edge
import
EdgeFactory
,
MiniSeedFactory
from
..Controller
import
(
from
..Controller
import
(
Controller
,
Controller
,
get_realtime_interval
,
get_realtime_interval
,
...
@@ -87,15 +86,15 @@ def filter_realtime(
...
@@ -87,15 +86,15 @@ def filter_realtime(
"""
Filter 10Hz miniseed, 1 second, one minute, and temperature data.
"""
Filter 10Hz miniseed, 1 second, one minute, and temperature data.
Defaults set for realtime processing; can also be implemented to update legacy data
"""
Defaults set for realtime processing; can also be implemented to update legacy data
"""
if
input_factory
==
"
miniseed
"
:
if
input_factory
==
"
miniseed
"
:
input_factory
=
M
ini
S
eed
F
actory
(
host
=
host
,
port
=
port
)
input_factory
=
get_m
ini
s
eed
_f
actory
(
host
=
host
,
port
=
port
)
elif
input_factory
==
"
edge
"
:
elif
input_factory
==
"
edge
"
:
input_factory
=
E
dge
F
actory
(
host
=
host
,
port
=
port
)
input_factory
=
get_e
dge
_f
actory
(
host
=
host
,
port
=
port
)
if
output_factory
==
"
miniseed
"
:
if
output_factory
==
"
miniseed
"
:
output_factory
=
M
ini
S
eed
F
actory
(
output_factory
=
get_m
ini
s
eed
_f
actory
(
host
=
host
,
port
=
output_read_port
,
write_port
=
output_port
host
=
host
,
port
=
output_read_port
,
write_port
=
output_port
)
)
elif
output_factory
==
"
edge
"
:
elif
output_factory
==
"
edge
"
:
output_factory
=
E
dge
F
actory
(
output_factory
=
get_e
dge
_f
actory
(
host
=
host
,
port
=
output_read_port
,
write_port
=
output_port
host
=
host
,
port
=
output_read_port
,
write_port
=
output_port
)
)
...
...
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