New
v7.1.0
Breaking Changes
- Increased minimum versions for these dependencies:
- Python >= 3.12
- astropy >= 6.1.0
- h5py >= 3.10.0
- lxml >= 5.0.1
- matplotlib >= 3.8.0
- numpy >= 1.26.0
- pandas >= 2.2.0
- reproject >= 0.13.0
- scipy >= 1.12.0 (#8367)
Removals
- Removed backwards compatibility with the legacy keyword,
patternwithin sunpy.net.Scraper (#8338) - Remove deprecated
assume_spherical_screenmethod in favor of ~sunpy.coordinates.SphericalScreen. (#8386) - Removed
silence_errorskeyword for input to both sunpy.map.Map and sunpy.timeseries.TimeSeries constructors after its long deprecation period. (#8397) - Removed the ability to read SDO/EVE level 0CS average files in sunpy.timeseries.TimeSeries after its long deprecation period. (#8397)
- Removed all deprecated API (
all_maps_same_shape,at_least_one_map_has_mask,as_array,all_metaandderotate) from sunpy.map.MapSequence after its long deprecation period. In addition,derotatewas removed from the initialization of sunpy.map.MapSequence. Finally,resamplekeyword was removed from the plotting method of sunpy.map.MapSequence. (#8397) - Removed
contourmethod on sunpy.map.Map after its long deprecation period. (#8397) - Removed deprecated arguments from
sunpy.net.vso.VSOClient.translate_and_querymethod (progressandvso_response_format) after its long deprecation period. (#8397) - Removed legacy
QueryResponseused by thesunpy.net.vsomodule after its long deprecation period. (#8397) - Removed legacy
diff_rotafter its long deprecation period. (#8397) - Removed legacy
extendon sunpy.time.TimeRange after its long deprecation period. (#8397) - Removed legacy
read_filesandwrite_filesmethods insunpy.ioafter their long deprecation period. (#8397) - Removed
sunpy.coordinates.transformationsmodule after its long deprecation period. (#8397, #8397)
New Features
- Added support for querying data from solarnet API using a new ~sunpy.net.solarnet.SOLARNETClient. (#7880)
- Added
sunpy.net.fido_factory.UnifiedResponse.show_in_notebookto render ~sunpy.net.Fido search results and~sunpy.net.attr.AttrMeta.show_in_notebookon all attrs to render attrs tables in form of interactive table usingitablesin Jupyter notebooks. (#7899) - Added a helper function (
sunpy.coordinates.utils.get_heliocentric_angle) to get the heliocentric angle of a coordinate on the solar disk, which can be used to compute μ for limb-darkening calculations. (#7979) - Enhanced sunpy.net.Fido's
searchmethod to be robust against client errors. Any client error will be caught and attached to.errorsproperty on both the ~sunpy.net.fido_factory.UnifiedResponse and individual ~sunpy.net.base_client.QueryResponseTable, the search will continue. (#8009) - A ~sunpy.util.SunpyUserWarning will be raised when sunpy.image.resample is used with
method='spline'and a data array containing nans and/or infinities. (#8185)
Bug Fixes
- ~sunpy.data.data_manager.cache.Cache will no longer delete a stale file if the download fails, it will now return the "stale" file. (#7935)
- Fixed a bug where the time format
2001-02-03T04:05:06Zwas being parsed through different code than2001-02-03T04:05:06or2001-02-03T04:05:06.0Z. (#8265) - Fixed a bug where
sunpy.util.system_infowould report sunpy as an optional dependency of itself instead of properly reporting all of the optional dependencies. (#8294) - Fixed
sunpy.util.system_infoso that the version reported for a development installation of sunpy itself or of a dependency is accurate. (#8297) - Fix inconsistent behaviour between local and remote (http/ftp) ~`sunpy.net.scraper.Scraper` searches. Local searches will no longer crash if an expected directory does not exist during search. (#8316)
- Fixed a bug where the ~sunpy.net.jsoc.attrs.Cutout class for requesting JSOC cutouts did not require the supplied coordinate to be in the ~sunpy.coordinates.Helioprojective coordinate frame. (#8346)
- For the class for requesting JSOC cutouts, added protection to require the center of the cutout to be on the solar disk when tracking is enabled, due to confusing output from JSOC. ()
Documentation
- Added a gallery example (
sphx_glr_generated_gallery_plotting_time_distance.py) demonstrating how to extract the intensities along a slit to create a time-distance plot taking into account differential rotation. (#8057) - The source-code links now go to the GitHub repository instead of rendered versions of the source code. (#8179)
- Fixed errors and added elaborations to the docstring for ~sunpy.coordinates.Helioprojective. (#8293)
- Added an example (
sphx_glr_generated_gallery_plotting_adding_earth.py) showing how to add an Earth scale image to a Map plot. (#8322) - Modified the example
sphx_glr_generated_gallery_plotting_adding_earth.pyto use mesh-based plotting instead of image-based plotting. (#8340)