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
494a83e0
Commit
494a83e0
authored
3 years ago
by
Cain, Payton David
Browse files
Options
Downloads
Patches
Plain Diff
use factory module for hour/day factories
parent
df9a399a
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
+3
-3
3 additions, 3 deletions
geomagio/processing/obsrio.py
with
3 additions
and
3 deletions
geomagio/processing/obsrio.py
+
3
−
3
View file @
494a83e0
...
@@ -45,8 +45,8 @@ def obsrio_filter(
...
@@ -45,8 +45,8 @@ def obsrio_filter(
update_limit
=
update_limit
,
update_limit
=
update_limit
,
)
)
elif
interval
in
[
"
hour
"
,
"
day
"
]:
elif
interval
in
[
"
hour
"
,
"
day
"
]:
input_factory
=
E
dge
F
actory
(
host
=
host
,
port
=
port
)
input_factory
=
get_e
dge
_f
actory
(
host
=
host
,
port
=
port
)
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
)
)
if
interval
==
"
hour
"
:
if
interval
==
"
hour
"
:
...
@@ -173,7 +173,7 @@ def obsrio_hour(
...
@@ -173,7 +173,7 @@ def obsrio_hour(
realtime_interval
:
int
=
600
,
realtime_interval
:
int
=
600
,
update_limit
:
int
=
10
,
update_limit
:
int
=
10
,
):
):
"""
Filter 1
second
edge H,E,Z,F to 1 hour miniseed U,V,W,F.
"""
"""
Filter 1
minute
edge H,E,Z,F to 1 hour miniseed U,V,W,F.
"""
starttime
,
endtime
=
get_realtime_interval
(
realtime_interval
)
starttime
,
endtime
=
get_realtime_interval
(
realtime_interval
)
controller
=
Controller
(
controller
=
Controller
(
inputFactory
=
input_factory
or
get_edge_factory
(),
inputFactory
=
input_factory
or
get_edge_factory
(),
...
...
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