Skip to content

Commit 01e6311

Browse files
Fixes a temporary bug with JSOC and AIA prep
- JSOC is not working so AIA pointing correction cannot be applied. This is temporary solved here but the hash data have to be updated when JSOC becomes availiable again.
1 parent 7260f12 commit 01e6311

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

PyThea/sunpy_dev/extern/sunkit_instruments/aia/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
import warnings
12
from astropy.time import TimeDelta
23
from aiapy.calibrate import fix_observer_location, update_pointing
34

45
__all__ = ['prep_aia']
56

67

78
def prep_aia(map_sequence):
8-
map_sequence = [update_pointing(tmap) for tmap in map_sequence]
9+
try:
10+
map_sequence = [update_pointing(tmap) for tmap in map_sequence]
11+
except:
12+
warnings.warn('Prepare AIA maps failed, script proceeded without update_pointing. Check connection with JSOC.', UserWarning)
13+
914
map_sequence = [fix_observer_location(tmap) for tmap in map_sequence]
1015

1116
for map_ in map_sequence:

PyThea/test/figure_hashes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"PyThea.test.test_figures.test_ellipsoid_on_AIA_venus": "f1ff774b483a8c934c9353c552278c8823216fc7d9dad4ccc00c74be3f30c4c3",
3-
"PyThea.test.test_figures.test_ellipsoid_on_AIA_mercury": "f6afda1c769a061b7ab1fc64c4e9c0f4658cdb97c3be83828ba5d98bf1bb182c",
3+
"PyThea.test.test_figures.test_ellipsoid_on_AIA_mercury": "a70589cd9c052d80532df5f9fbbc6d857333dcd3e2e7acfbe0e73f6b98a2a6ef",
44
"PyThea.test.test_figures.test_ellipsoid_on_STEREO_COR1_venus": "18a3af72e9da5b60e435f83ee3ef3f8cd0eb437eaef463329552ff56968f12ff",
55
"PyThea.test.test_figures.test_ellipsoid_on_STEREO_COR2_three_planets": "231d5635f57c4d66556674a83f6cbcef7dc94b51846e977c4c2dc3dc244096ac",
66
"PyThea.test.test_figures.test_kinematics_figure": "83e060de53b57e9d34fe50111ba60a44f7c7c7b20faae9a4381654ef1c9ea72d",

0 commit comments

Comments
 (0)