SHA256
1
0
forked from pool/python-sunpy
Files
python-sunpy/sunpy-obs-profile.patch

28 lines
753 B
Diff
Raw Permalink Normal View History

- Update to 5.0.0: * `~sunpy.net.dataretriever.XRSClient` now provides the re-processed GOES-XRS 8-15 data from NOAA. * Changed the output of :func:`sunpy.map.sample_at_coords` to return the sampled values as `~astropy.units.Quantity` with the appropriate units instead of merely numbers. * Able to run the ``sunpy`` tests doing ``python -m sunpy.tests.self_test``. * Able to detect gzip-compressed FITS files even if they don't have the ``.gz`` extension in the filename. `~sunpy.io.detect_filetype` now looks for the right file signature while checking for gzipped FITS files. * Added ``AttrAnd`` and ``AttrOr`` to the namespace in ``sunpy.net.attrs``. * `~sunpy.net.dataretriever.SUVIClient` now provides GOES-18 SUVI data. * The minimum required versions of several core dependencies have been updated: + Python 3.9 + astropy 5.0.1 + numpy 1.21.0 * Added the utility function :func:`sunpy.map.pixelate_coord_path` to fully pixelate a coordinate path according to the pixels of a given map. * Able to download files from REST/TAP Data Providers from the VSO. * Adding data unit into html repr for `sunpy.map.Map` * Joined ``HISTORY`` keys with newline characters when parsing ``HISTORY`` cards from FITS header. * Added the ability to query for the GOES-XRS 1 minute average data with the `.XRSClient`. * Increased minimum version of `parfive` to 2.0.0. * Fixed the incorrect calculation in sunpy.map.header_helper.make_fitswcs_header` of the rotation matrix from a rotation angle when the pixels are non-square. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=40
2023-08-04 07:25:44 +00:00
Index: sunpy-5.0.0/sunpy/conftest.py
Accepting request 985360 from home:bnavigator:branches:devel:languages:python:numeric - Update to v4.0.2 * Added a SDO/AIA 1600 file of the Venus transit to the sunpy sample data. (#6242) * Expose GOES quality flags in order to allow filtering corrupt values when using the ~sunpy.timeseries.sources.goes.XRSTimeSeries. (#6260) * The sunpy.net.dataretriever.sources.noaa.SRSClient was not correctly setting the passive mode for FTP connection resulting in a permission error. This has been fixed. (#6256) * Changed the default scaling for ~sunpy.map.sources.EUIMap from a linear stretch to a asinh stretch. To revert to the previous linear stretch do the following: from astropy.visualization import ImageNormalize, LinearStretch euimap.plot_settings["norm"] = ImageNormalize(stretch=LinearStretch()) * Add support for upcoming parfive 2.0 release. (#6243) * The primary sample-data URL will be changing from https://github.com/sunpy/sample-data/raw/master/sunpy/v1/ to https://github.com/sunpy/data/raw/main/sunpy/v1/. We expect GitHub to redirect from the old URL for sometime but will eventually expire it. The data.sunpy.org mirror will continue to be available. (#6289) * Add support for downloading sample data from more than two mirror locations. (#6295) - Relese 4.0.1 * Updated the sample data file, AIA_171_ROLL_IMAGE to be rice compressed instead of gzip compressed. This means that the data is now stored in the second HDU. (#6221) * Three new maps have been added to the sample data from STEREO A and STEREO B at 195 Angstrom, and AIA at 193 Angstrom. These images are from a time when the three spacecraft were equally spaced around the Sun, and therefore form near complete instantaneous coverage of the solar surface. * Users upgrading to this version will find this three files download when they use the sample data for the first time. (#6197) * Fix a bug that prevented EUI maps with missing wavelength metadata loading. (#6199) * Improved annotations in the SRS active regions plotting example. (#6196) * Updated gallery examples that use STEREO data to use sample data instead of searching for and downloading data via Fido. (#6197) * Updated the info_url for the ~sunpy.net.dataretriever.sources.goes.XRSClient to account for the different default sources that vary based on GOES satellite number. (#6152) * Added automatic conversion of unit strings in CDF files to astropy unit objects for the following instruments: PSP/ISOIS, SOHO/CELIAS, SOHO/COSTEP-EPHIN, and SOHO/ERNE. (#6159) * Add an environment variable SUNPY_NO_BUILD_ANA_EXTENSION which when present will cause sunpy to not compile the ANA C extension when building from source. (#6166) * sunpy now uses the Limited Python API. Therefore, one binary distribution (wheel) per platform is now published and it is compatible with all Python versions sunpy supports. (#6171) - Replace sunpy-test-ignore-warnings.patch by sunpy-obs-profile.patch and sunpy-scikit-image-deprecation.patch OBS-URL: https://build.opensuse.org/request/show/985360 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=27
2022-06-28 08:40:10 +00:00
===================================================================
- Update to 5.0.0: * `~sunpy.net.dataretriever.XRSClient` now provides the re-processed GOES-XRS 8-15 data from NOAA. * Changed the output of :func:`sunpy.map.sample_at_coords` to return the sampled values as `~astropy.units.Quantity` with the appropriate units instead of merely numbers. * Able to run the ``sunpy`` tests doing ``python -m sunpy.tests.self_test``. * Able to detect gzip-compressed FITS files even if they don't have the ``.gz`` extension in the filename. `~sunpy.io.detect_filetype` now looks for the right file signature while checking for gzipped FITS files. * Added ``AttrAnd`` and ``AttrOr`` to the namespace in ``sunpy.net.attrs``. * `~sunpy.net.dataretriever.SUVIClient` now provides GOES-18 SUVI data. * The minimum required versions of several core dependencies have been updated: + Python 3.9 + astropy 5.0.1 + numpy 1.21.0 * Added the utility function :func:`sunpy.map.pixelate_coord_path` to fully pixelate a coordinate path according to the pixels of a given map. * Able to download files from REST/TAP Data Providers from the VSO. * Adding data unit into html repr for `sunpy.map.Map` * Joined ``HISTORY`` keys with newline characters when parsing ``HISTORY`` cards from FITS header. * Added the ability to query for the GOES-XRS 1 minute average data with the `.XRSClient`. * Increased minimum version of `parfive` to 2.0.0. * Fixed the incorrect calculation in sunpy.map.header_helper.make_fitswcs_header` of the rotation matrix from a rotation angle when the pixels are non-square. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=40
2023-08-04 07:25:44 +00:00
--- sunpy-5.0.0.orig/sunpy/conftest.py
+++ sunpy-5.0.0/sunpy/conftest.py
@@ -4,6 +4,7 @@ import pathlib
Accepting request 985360 from home:bnavigator:branches:devel:languages:python:numeric - Update to v4.0.2 * Added a SDO/AIA 1600 file of the Venus transit to the sunpy sample data. (#6242) * Expose GOES quality flags in order to allow filtering corrupt values when using the ~sunpy.timeseries.sources.goes.XRSTimeSeries. (#6260) * The sunpy.net.dataretriever.sources.noaa.SRSClient was not correctly setting the passive mode for FTP connection resulting in a permission error. This has been fixed. (#6256) * Changed the default scaling for ~sunpy.map.sources.EUIMap from a linear stretch to a asinh stretch. To revert to the previous linear stretch do the following: from astropy.visualization import ImageNormalize, LinearStretch euimap.plot_settings["norm"] = ImageNormalize(stretch=LinearStretch()) * Add support for upcoming parfive 2.0 release. (#6243) * The primary sample-data URL will be changing from https://github.com/sunpy/sample-data/raw/master/sunpy/v1/ to https://github.com/sunpy/data/raw/main/sunpy/v1/. We expect GitHub to redirect from the old URL for sometime but will eventually expire it. The data.sunpy.org mirror will continue to be available. (#6289) * Add support for downloading sample data from more than two mirror locations. (#6295) - Relese 4.0.1 * Updated the sample data file, AIA_171_ROLL_IMAGE to be rice compressed instead of gzip compressed. This means that the data is now stored in the second HDU. (#6221) * Three new maps have been added to the sample data from STEREO A and STEREO B at 195 Angstrom, and AIA at 193 Angstrom. These images are from a time when the three spacecraft were equally spaced around the Sun, and therefore form near complete instantaneous coverage of the solar surface. * Users upgrading to this version will find this three files download when they use the sample data for the first time. (#6197) * Fix a bug that prevented EUI maps with missing wavelength metadata loading. (#6199) * Improved annotations in the SRS active regions plotting example. (#6196) * Updated gallery examples that use STEREO data to use sample data instead of searching for and downloading data via Fido. (#6197) * Updated the info_url for the ~sunpy.net.dataretriever.sources.goes.XRSClient to account for the different default sources that vary based on GOES satellite number. (#6152) * Added automatic conversion of unit strings in CDF files to astropy unit objects for the following instruments: PSP/ISOIS, SOHO/CELIAS, SOHO/COSTEP-EPHIN, and SOHO/ERNE. (#6159) * Add an environment variable SUNPY_NO_BUILD_ANA_EXTENSION which when present will cause sunpy to not compile the ANA C extension when building from source. (#6166) * sunpy now uses the Limited Python API. Therefore, one binary distribution (wheel) per platform is now published and it is compatible with all Python versions sunpy supports. (#6171) - Replace sunpy-test-ignore-warnings.patch by sunpy-obs-profile.patch and sunpy-scikit-image-deprecation.patch OBS-URL: https://build.opensuse.org/request/show/985360 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=27
2022-06-28 08:40:10 +00:00
import tempfile
import importlib
+import hypothesis
import pytest
import astropy
- Update to 5.0.0: * `~sunpy.net.dataretriever.XRSClient` now provides the re-processed GOES-XRS 8-15 data from NOAA. * Changed the output of :func:`sunpy.map.sample_at_coords` to return the sampled values as `~astropy.units.Quantity` with the appropriate units instead of merely numbers. * Able to run the ``sunpy`` tests doing ``python -m sunpy.tests.self_test``. * Able to detect gzip-compressed FITS files even if they don't have the ``.gz`` extension in the filename. `~sunpy.io.detect_filetype` now looks for the right file signature while checking for gzipped FITS files. * Added ``AttrAnd`` and ``AttrOr`` to the namespace in ``sunpy.net.attrs``. * `~sunpy.net.dataretriever.SUVIClient` now provides GOES-18 SUVI data. * The minimum required versions of several core dependencies have been updated: + Python 3.9 + astropy 5.0.1 + numpy 1.21.0 * Added the utility function :func:`sunpy.map.pixelate_coord_path` to fully pixelate a coordinate path according to the pixels of a given map. * Able to download files from REST/TAP Data Providers from the VSO. * Adding data unit into html repr for `sunpy.map.Map` * Joined ``HISTORY`` keys with newline characters when parsing ``HISTORY`` cards from FITS header. * Added the ability to query for the GOES-XRS 1 minute average data with the `.XRSClient`. * Increased minimum version of `parfive` to 2.0.0. * Fixed the incorrect calculation in sunpy.map.header_helper.make_fitswcs_header` of the rotation matrix from a rotation angle when the pixels are non-square. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=40
2023-08-04 07:25:44 +00:00
@@ -34,6 +35,14 @@ collect_ignore = ["data/sample.py"]
console_logger = logging.getLogger()
console_logger.setLevel('INFO')
Accepting request 985360 from home:bnavigator:branches:devel:languages:python:numeric - Update to v4.0.2 * Added a SDO/AIA 1600 file of the Venus transit to the sunpy sample data. (#6242) * Expose GOES quality flags in order to allow filtering corrupt values when using the ~sunpy.timeseries.sources.goes.XRSTimeSeries. (#6260) * The sunpy.net.dataretriever.sources.noaa.SRSClient was not correctly setting the passive mode for FTP connection resulting in a permission error. This has been fixed. (#6256) * Changed the default scaling for ~sunpy.map.sources.EUIMap from a linear stretch to a asinh stretch. To revert to the previous linear stretch do the following: from astropy.visualization import ImageNormalize, LinearStretch euimap.plot_settings["norm"] = ImageNormalize(stretch=LinearStretch()) * Add support for upcoming parfive 2.0 release. (#6243) * The primary sample-data URL will be changing from https://github.com/sunpy/sample-data/raw/master/sunpy/v1/ to https://github.com/sunpy/data/raw/main/sunpy/v1/. We expect GitHub to redirect from the old URL for sometime but will eventually expire it. The data.sunpy.org mirror will continue to be available. (#6289) * Add support for downloading sample data from more than two mirror locations. (#6295) - Relese 4.0.1 * Updated the sample data file, AIA_171_ROLL_IMAGE to be rice compressed instead of gzip compressed. This means that the data is now stored in the second HDU. (#6221) * Three new maps have been added to the sample data from STEREO A and STEREO B at 195 Angstrom, and AIA at 193 Angstrom. These images are from a time when the three spacecraft were equally spaced around the Sun, and therefore form near complete instantaneous coverage of the solar surface. * Users upgrading to this version will find this three files download when they use the sample data for the first time. (#6197) * Fix a bug that prevented EUI maps with missing wavelength metadata loading. (#6199) * Improved annotations in the SRS active regions plotting example. (#6196) * Updated gallery examples that use STEREO data to use sample data instead of searching for and downloading data via Fido. (#6197) * Updated the info_url for the ~sunpy.net.dataretriever.sources.goes.XRSClient to account for the different default sources that vary based on GOES satellite number. (#6152) * Added automatic conversion of unit strings in CDF files to astropy unit objects for the following instruments: PSP/ISOIS, SOHO/CELIAS, SOHO/COSTEP-EPHIN, and SOHO/ERNE. (#6159) * Add an environment variable SUNPY_NO_BUILD_ANA_EXTENSION which when present will cause sunpy to not compile the ANA C extension when building from source. (#6166) * sunpy now uses the Limited Python API. Therefore, one binary distribution (wheel) per platform is now published and it is compatible with all Python versions sunpy supports. (#6171) - Replace sunpy-test-ignore-warnings.patch by sunpy-obs-profile.patch and sunpy-scikit-image-deprecation.patch OBS-URL: https://build.opensuse.org/request/show/985360 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=27
2022-06-28 08:40:10 +00:00
+hypothesis.settings.register_profile(
+ 'obs',
+ deadline=5000,
+ suppress_health_check=[hypothesis.HealthCheck.too_slow]
+)
+# this loads the profile after the pytest header printout, so don't be confused by the
+# 'default' there.
+hypothesis.settings.load_profile('obs')
- Update to 5.0.0: * `~sunpy.net.dataretriever.XRSClient` now provides the re-processed GOES-XRS 8-15 data from NOAA. * Changed the output of :func:`sunpy.map.sample_at_coords` to return the sampled values as `~astropy.units.Quantity` with the appropriate units instead of merely numbers. * Able to run the ``sunpy`` tests doing ``python -m sunpy.tests.self_test``. * Able to detect gzip-compressed FITS files even if they don't have the ``.gz`` extension in the filename. `~sunpy.io.detect_filetype` now looks for the right file signature while checking for gzipped FITS files. * Added ``AttrAnd`` and ``AttrOr`` to the namespace in ``sunpy.net.attrs``. * `~sunpy.net.dataretriever.SUVIClient` now provides GOES-18 SUVI data. * The minimum required versions of several core dependencies have been updated: + Python 3.9 + astropy 5.0.1 + numpy 1.21.0 * Added the utility function :func:`sunpy.map.pixelate_coord_path` to fully pixelate a coordinate path according to the pixels of a given map. * Able to download files from REST/TAP Data Providers from the VSO. * Adding data unit into html repr for `sunpy.map.Map` * Joined ``HISTORY`` keys with newline characters when parsing ``HISTORY`` cards from FITS header. * Added the ability to query for the GOES-XRS 1 minute average data with the `.XRSClient`. * Increased minimum version of `parfive` to 2.0.0. * Fixed the incorrect calculation in sunpy.map.header_helper.make_fitswcs_header` of the rotation matrix from a rotation angle when the pixels are non-square. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=40
2023-08-04 07:25:44 +00:00
@pytest.fixture
def jsoc_test_email():