Skip to content

Commit 70708c7

Browse files
committed
upgrade SunPy to 2.1.0, remove workaround which is now included in SunPy (sunpy/sunpy#4561)
1 parent ead0cfd commit 70708c7

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

gcs/gui.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ def load_image(spacecraft: str, detector: str, date: dt.datetime, runndiff: bool
7070

7171
def download_helioviewer(date, observatory, instrument, detector):
7272
file = hv.download_jp2(date, observatory=observatory, instrument=instrument, detector=detector)
73-
data, header = read_file(file)[0]
74-
header['CROTA2'] = 0 # Helioviewer images are already rotated, so reset the CROTA2 header to 0
75-
f = Map(data, header)
73+
f = Map(file)
7674

7775
if observatory == 'SOHO':
7876
# add observer location information:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ astroquery
22
matplotlib
33
numpy
44
scipy>=1.2.0
5-
sunpy[net,jpeg2000]
5+
sunpy[net,jpeg2000]>=2.1.0
66
PyQt5

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
]
2222
},
2323
packages=['gcs', 'gcs.utils'],
24-
install_requires=['astroquery', 'matplotlib', 'numpy', 'scipy>=1.2.0', 'sunpy[net,jpeg2000]', 'PyQt5'],
24+
install_requires=['astroquery', 'matplotlib', 'numpy', 'scipy>=1.2.0', 'sunpy[net,jpeg2000]>=2.1.0', 'PyQt5'],
2525
classifiers=[
2626
"Programming Language :: Python :: 3",
2727
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)