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
585efea9
Commit
585efea9
authored
5 years ago
by
Jeremy M Fee
Browse files
Options
Downloads
Patches
Plain Diff
Update interval names
parent
9cd224bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
geomagio/edge/EdgeFactory.py
+6
-6
6 additions, 6 deletions
geomagio/edge/EdgeFactory.py
test/edge_test/EdgeFactory_test.py
+2
-2
2 additions, 2 deletions
test/edge_test/EdgeFactory_test.py
with
8 additions
and
8 deletions
geomagio/edge/EdgeFactory.py
+
6
−
6
View file @
585efea9
...
...
@@ -51,7 +51,7 @@ class EdgeFactory(TimeseriesFactory):
type: str
the data type {variation, quasi-definitive, definitive}
interval: str
the data interval {da
il
y, hour
ly
, minute, second}
the data interval {day, hour, minute, second}
observatoryMetadata: ObservatoryMetadata object
an ObservatoryMetadata object used to replace the default
ObservatoryMetadata.
...
...
@@ -115,7 +115,7 @@ class EdgeFactory(TimeseriesFactory):
list of channels to load
type: {
'
variation
'
,
'
quasi-definitive
'
,
'
definitive
'
}
data type.
interval: {
'
da
il
y
'
,
'
hour
ly
'
,
'
minute
'
,
'
second
'
}
interval: {
'
day
'
,
'
hour
'
,
'
minute
'
,
'
second
'
,
'
tenhertz
'
}
data interval.
Returns
...
...
@@ -175,7 +175,7 @@ class EdgeFactory(TimeseriesFactory):
list of channels to load
type: {
'
variation
'
,
'
quasi-definitive
'
,
'
definitive
'
}
data type.
interval: {
'
da
il
y
'
,
'
hour
ly
'
,
'
minute
'
,
'
second
'
}
interval: {
'
day
'
,
'
hour
'
,
'
minute
'
,
'
second
'
,
'
tenhertz
'
}
data interval.
Notes
...
...
@@ -427,9 +427,9 @@ class EdgeFactory(TimeseriesFactory):
interval type
"""
interval_code
=
None
if
interval
==
'
da
il
y
'
:
if
interval
==
'
day
'
:
interval_code
=
'
D
'
elif
interval
==
'
hour
ly
'
:
elif
interval
==
'
hour
'
:
interval_code
=
'
H
'
elif
interval
==
'
minute
'
:
interval_code
=
'
M
'
...
...
@@ -530,7 +530,7 @@ class EdgeFactory(TimeseriesFactory):
channel to load
type: {
'
variation
'
,
'
quasi-definitive
'
,
'
definitive
'
}
data type.
interval: {
'
da
il
y
'
,
'
hour
ly
'
,
'
minute
'
,
'
second
'
}
interval: {
'
day
'
,
'
hour
'
,
'
minute
'
,
'
second
'
,
'
tenhertz
'
}
data interval.
starttime: obspy.core.UTCDateTime
endtime: obspy.core.UTCDateTime
...
...
This diff is collapsed.
Click to expand it.
test/edge_test/EdgeFactory_test.py
+
2
−
2
View file @
585efea9
...
...
@@ -58,8 +58,8 @@ def test__get_edge_location():
def
test__get_interval_code
():
"""
edge_test.EdgeFactory_test.test__get_interval_code()
"""
assert_equals
(
EdgeFactory
().
_get_interval_code
(
'
da
il
y
'
),
'
D
'
)
assert_equals
(
EdgeFactory
().
_get_interval_code
(
'
hour
ly
'
),
'
H
'
)
assert_equals
(
EdgeFactory
().
_get_interval_code
(
'
day
'
),
'
D
'
)
assert_equals
(
EdgeFactory
().
_get_interval_code
(
'
hour
'
),
'
H
'
)
assert_equals
(
EdgeFactory
().
_get_interval_code
(
'
minute
'
),
'
M
'
)
assert_equals
(
EdgeFactory
().
_get_interval_code
(
'
second
'
),
'
S
'
)
...
...
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