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
cf588fee
Commit
cf588fee
authored
8 years ago
by
Jeremy M Fee
Browse files
Options
Downloads
Patches
Plain Diff
Remove MagWebFactory
parent
684d9904
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
geomagio/iaga2002/MagWebFactory.py
+0
-24
0 additions, 24 deletions
geomagio/iaga2002/MagWebFactory.py
geomagio/iaga2002/__init__.py
+1
-3
1 addition, 3 deletions
geomagio/iaga2002/__init__.py
test/iaga2002_test/MagWebFactory_test.py
+0
-13
0 additions, 13 deletions
test/iaga2002_test/MagWebFactory_test.py
with
1 addition
and
40 deletions
geomagio/iaga2002/MagWebFactory.py
deleted
100644 → 0
+
0
−
24
View file @
684d9904
"""
Load IAGA2002 format files from http://magweb.cr.usgs.gov
"""
from
IAGA2002Factory
import
IAGA2002Factory
,
IAGA_FILE_PATTERN
# url pattern for magweb.cr.usgs.gov
MAGWEB_URL_TEMPLATE
=
'
http://magweb.cr.usgs.gov/data/magnetometer/
'
+
\
'
%(OBS)s/%(interval)s%(type)s/
'
+
IAGA_FILE_PATTERN
class
MagWebFactory
(
IAGA2002Factory
):
"""
IAGA2002Factory configured for magweb.cr.usgs.gov
"""
def
__init__
(
self
,
observatory
=
None
,
channels
=
None
,
type
=
None
,
interval
=
None
):
"""
Create a IAGA2002Factory configured to use magweb.cr.usgs.gov
"""
IAGA2002Factory
.
__init__
(
self
,
MAGWEB_URL_TEMPLATE
,
observatory
=
observatory
,
channels
=
channels
,
type
=
type
,
interval
=
interval
)
MagWebFactory
.
MAGWEB_URL_TEMPLATE
=
MAGWEB_URL_TEMPLATE
This diff is collapsed.
Click to expand it.
geomagio/iaga2002/__init__.py
+
1
−
3
View file @
cf588fee
...
...
@@ -8,13 +8,11 @@ from IAGA2002Factory import IAGA2002Factory
from
StreamIAGA2002Factory
import
StreamIAGA2002Factory
from
IAGA2002Parser
import
IAGA2002Parser
from
IAGA2002Writer
import
IAGA2002Writer
from
MagWebFactory
import
MagWebFactory
__all__
=
[
'
IAGA2002Factory
'
,
'
StreamIAGA2002Factory
'
,
'
IAGA2002Parser
'
,
'
IAGA2002Writer
'
,
'
MagWebFactory
'
'
IAGA2002Writer
'
]
This diff is collapsed.
Click to expand it.
test/iaga2002_test/MagWebFactory_test.py
deleted
100644 → 0
+
0
−
13
View file @
684d9904
"""
Tests for MagWebFactory.
"""
from
geomagio.iaga2002
import
MagWebFactory
from
nose.tools
import
assert_equals
def
test_init
():
"""
iaga2002_test.MagWebFactory_test.test_init()
Verify MagWebFactory calls parent constructor with MAGWEB_URL_TEMPLATE.
"""
factory
=
MagWebFactory
()
assert_equals
(
factory
.
urlTemplate
,
MagWebFactory
.
MAGWEB_URL_TEMPLATE
)
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