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
64a8f613
Commit
64a8f613
authored
4 years ago
by
Cain, Payton David
Browse files
Options
Downloads
Patches
Plain Diff
Update interval names in Timeseries Factory
parent
0ae6401d
No related branches found
No related tags found
2 merge requests
!146
Release CMO metadata to production
,
!31
Update intervals for Timeseries factories
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
geomagio/ObservatoryMetadata.py
+1
-1
1 addition, 1 deletion
geomagio/ObservatoryMetadata.py
geomagio/PlotTimeseriesFactory.py
+1
-1
1 addition, 1 deletion
geomagio/PlotTimeseriesFactory.py
geomagio/TimeseriesFactory.py
+10
-9
10 additions, 9 deletions
geomagio/TimeseriesFactory.py
with
12 additions
and
11 deletions
geomagio/ObservatoryMetadata.py
+
1
−
1
View file @
64a8f613
...
...
@@ -619,7 +619,7 @@ DEFAULT_METADATA = {
"
data_interval_type
"
:
"
1-minute calculated
"
,
"
filter_comments
"
:
[],
},
"
hour
ly
"
:
{
"
data_interval_type
"
:
"
1-hour calculated
"
},
"
hour
"
:
{
"
data_interval_type
"
:
"
1-hour calculated
"
},
},
},
"
BLC
"
:
{
...
...
This diff is collapsed.
Click to expand it.
geomagio/PlotTimeseriesFactory.py
+
1
−
1
View file @
64a8f613
...
...
@@ -50,7 +50,7 @@ class PlotTimeseriesFactory(TimeseriesFactory):
type : {
'
definitive
'
,
'
provisional
'
,
'
quasi-definitive
'
,
'
variation
'
}
data type, optional.
uses default if unspecified.
interval : {
'
da
il
y
'
,
'
hour
ly
'
,
'
minute
'
,
'
month
ly
'
,
'
second
'
}
interval : {
'
day
'
,
'
hour
'
,
'
minute
'
,
'
month
'
,
'
second
'
}
data interval, optional.
uses default if unspecified.
Raises
...
...
This diff is collapsed.
Click to expand it.
geomagio/TimeseriesFactory.py
+
10
−
9
View file @
64a8f613
...
...
@@ -31,7 +31,7 @@ class TimeseriesFactory(object):
type : {
'
definitive
'
,
'
provisional
'
,
'
quasi-definitive
'
,
'
variation
'
}
default data type, optional.
default
'
variation
'
.
interval : {
'
da
il
y
'
,
'
hour
ly
'
,
'
minute
'
,
'
month
ly
'
,
'
second
'
}
interval : {
'
day
'
,
'
hour
'
,
'
minute
'
,
'
month,
'
second
'
}
data interval, optional.
default
'
minute
'
.
urlTemplate : str
...
...
@@ -90,7 +90,7 @@ class TimeseriesFactory(object):
type : {
'
definitive
'
,
'
provisional
'
,
'
quasi-definitive
'
,
'
variation
'
}
data type, optional.
uses default if unspecified.
interval : {
'
da
il
y
'
,
'
hour
ly
'
,
'
minute
'
,
'
month
ly
'
,
'
second
'
}
interval : {
'
day
'
,
'
hour
'
,
'
minute
'
,
'
month
'
,
'
second
'
}
data interval, optional.
uses default if unspecified.
...
...
@@ -196,7 +196,7 @@ class TimeseriesFactory(object):
type : {
'
definitive
'
,
'
provisional
'
,
'
quasi-definitive
'
,
'
variation
'
}
data type, optional.
uses default if unspecified.
interval : {
'
da
il
y
'
,
'
hour
ly
'
,
'
minute
'
,
'
month
ly
'
,
'
second
'
}
interval : {
'
day
'
,
'
hour
'
,
'
minute
'
,
'
month
'
,
'
second
'
}
data interval, optional.
uses default if unspecified.
Raises
...
...
@@ -339,7 +339,7 @@ class TimeseriesFactory(object):
type : {
'
variation
'
,
'
reported
'
,
'
provisional
'
,
'
adjusted
'
,
'
quasi-definitive
'
,
'
definitive
'
}
data type.
interval : {
'
minute
'
,
'
second
'
,
'
hour
ly
'
,
'
da
il
y
'
}
interval : {
'
minute
'
,
'
second
'
,
'
hour
'
,
'
day
'
}
data interval.
channels : list
list of data channels being requested
...
...
@@ -384,7 +384,7 @@ class TimeseriesFactory(object):
Parameters
----------
interval : {
'
da
il
y
'
,
'
hour
ly
'
,
'
minute
'
,
'
month
ly
'
,
'
second
'
}
interval : {
'
day
'
,
'
hour
'
,
'
minute
'
,
'
month
'
,
'
second
'
}
Returns
-------
...
...
@@ -395,14 +395,15 @@ class TimeseriesFactory(object):
TimeseriesFactoryException
if ``interval`` is not supported.
"""
interval_abbr
=
None
if
interval
==
"
da
il
y
"
:
if
interval
==
"
day
"
:
interval_abbr
=
"
day
"
elif
interval
==
"
hour
ly
"
:
elif
interval
==
"
hour
"
:
interval_abbr
=
"
hor
"
elif
interval
==
"
minute
"
:
interval_abbr
=
"
min
"
elif
interval
==
"
month
ly
"
:
elif
interval
==
"
month
"
:
interval_abbr
=
"
mon
"
elif
interval
==
"
second
"
:
interval_abbr
=
"
sec
"
...
...
@@ -433,7 +434,7 @@ class TimeseriesFactory(object):
interval_name
=
"
OneMinute
"
elif
interval
==
"
second
"
:
interval_name
=
"
OneSecond
"
elif
interval
==
"
hour
ly
"
:
elif
interval
==
"
hour
"
:
interval_name
=
"
OneHour
"
else
:
raise
TimeseriesFactoryException
(
'
Unsupported interval
"
%s
"'
%
interval
)
...
...
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