What’s New in sunpy 6.0?#

The SunPy Project is pleased to announce the 6.0 release of the sunpy core package.

On this page, you can read about some of the big changes in this release.

sunpy 6.0 also includes a large number of smaller improvements and bug fixes, which are described in the Full Changelog.


Updates to minimum dependencies#

The minimum required version of Python has been updated to 3.10.

The minimum required versions of core dependencies have been updated:

  • astropy >= 5.2.0

The minimum required versions of these optional dependencies has also been updated:

  • asdf-astropy >= 0.2.0

  • asdf >= 2.11.0

  • dask >= 2022.5.2

  • scikit-image >= 0.19.0

  • scipy >= 1.8.0

  • lxml >= 4.9.0

  • reproject >= 0.9.0

  • beautifulsoup4 >= 4.11.0

  • tqdm >= 4.64.0

  • zeep >= 4.1.0

  • spiceypy >= 5.0.0

  • cdflib >= 0.4.4

  • h5netcdf >= 1.0.0

  • h5py >= 3.7.0

  • pandas >= 1.4.0

  • opencv-python >=

Removal of sunpy.database#

The sunpy.database module has not been actively maintained for over a year now and has a number of outstanding issues. It has been deprecated since sunpy 4.1, and since there have been no major objections from the community since then we have completely removed sunpy.database in sunpy 6.0. If you are interested in seeing a replacement for sunpy.database, either inside sunpy or as a third-party package, please join the discussion thread at https://community.openastronomy.org/t/deprecating-sunpy-database/495.

Arguments for reproject_to()#

Arguments for this method have been changed to be keyword only after the target WCS argument. This was raising a warning since sunpy 4.1.

Removal of sunpy.net.helioviewer.HelioViewerClient#

sunpy.net.helioviewer has been deprecated since sunpy v4.1 and has now been removed. Users should instead use the hvpy package. This package provides a Python wrapper around the Helioviewer API and is maintained by the Helioviewer Project. The hvpy package supersedes the sunpy.net.helioviewer module.

Arguments for sunpy.timeseries.GenericTimeSeries.peek() are now keywords only#

The arguments for sunpy.timeseries.GenericTimeSeries.peek() have been changed to be keyword only. This means that you must now specify the arguments by name, rather than by position and has been done to make the API more consistent. This has been raising a warning since sunpy 4.1 and is now an error.