Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Commit cc5c5eb

Browse files
authored
Merge pull request #823 from dstansby/cassini-v2
Convert cassini mag to v2 of dataset
2 parents fd5efca + 2617747 commit cc5c5eb

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

heliopy/data/cassini.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def download(self, interval):
8989
local_dir.mkdir(parents=True, exist_ok=True)
9090
year = interval.start.strftime('%Y')
9191
base_url = ('http://pds-ppi.igpp.ucla.edu/ditdos/download?'
92-
'id=pds://PPI/CO-E_SW_J_S-MAG-4-SUMM-1MINAVG-V1.0/DATA')
92+
'id=pds://PPI/CO-E_SW_J_S-MAG-4-SUMM-1MINAVG-V2.0/DATA')
9393
url = '{}/{}'.format(base_url, year)
9494
util._download_remote(url,
9595
self.fname(interval),
@@ -169,7 +169,7 @@ def mag_hires(starttime, endtime, try_download=True):
169169
Requested data
170170
"""
171171
remote_base_url = ('http://pds-ppi.igpp.ucla.edu/ditdos/download?id='
172-
'pds://PPI/CO-E_SW_J_S-MAG-3-RDR-FULL-RES-V1.0/DATA')
172+
'pds://PPI/CO-E_SW_J_S-MAG-3-RDR-FULL-RES-V2.0/DATA')
173173
dirs = []
174174
fnames = []
175175
extension = '.TAB'

heliopy/data/test/test_cassini.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
pytest.mark.data()
66
cassini = pytest.importorskip("heliopy.data.cassini")
77

8-
# Server down
9-
'''
8+
9+
@pytest.mark.skip("Cassini tests do not work on CI")
1010
def test_mag_hires():
11-
starttime = datetime(2008, 6, 1, 0, 0, 0)
12-
endtime = datetime(2008, 6, 2, 1, 0, 0)
11+
starttime = datetime(2002, 2, 1)
12+
endtime = datetime(2002, 2, 1, 1)
1313
df = cassini.mag_hires(starttime, endtime)
1414
check_data_output(df)
1515

1616
# Check that a RTN co-ordinate download works too
17-
starttime = datetime(2004, 5, 1)
18-
endtime = datetime(2004, 5, 2)
17+
starttime = datetime(2001, 1, 1)
18+
endtime = datetime(2001, 1, 1, 23)
1919
df = cassini.mag_hires(starttime, endtime)
2020
check_data_output(df)
2121

@@ -24,11 +24,11 @@ def test_mag_hires():
2424
endtime = datetime(2040, 5, 2)
2525
with pytest.raises(RuntimeError):
2626
df = cassini.mag_hires(starttime, endtime)
27-
'''
2827

2928

29+
@pytest.mark.skip("Cassini tests do not work on CI")
3030
def test_mag_1min():
31-
starttime = datetime(2008, 6, 1, 0, 0, 0)
32-
endtime = datetime(2008, 6, 2, 1, 0, 0)
31+
starttime = datetime(2008, 6, 1)
32+
endtime = datetime(2008, 6, 2, 23)
3333
df = cassini.mag_1min(starttime, endtime, 'KSO')
3434
check_data_output(df)

0 commit comments

Comments
 (0)