Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix ecallisto client #61

Merged
merged 5 commits into from
Nov 17, 2023

Extra fixes to CI

b7d3cae
Select commit
Loading
Failed to load commit list.
Merged

Bugfix ecallisto client #61

Extra fixes to CI
b7d3cae
Select commit
Loading
Failed to load commit list.
Azure Pipelines / sunpy.radiospectra failed Nov 17, 2023 in 5m 39s

Build #sunpy.radiospectra_20231117.04 had test failures

Details

Tests

  • Failed: 8 (1.96%)
  • Passed: 360 (88.24%)
  • Other: 40 (9.80%)
  • Total: 408

Annotations

Check failure on line 27 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / sunpy.radiospectra

Build log #L27

Bash exited with code '2'.

Check failure on line 853 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / sunpy.radiospectra

Build log #L853

Bash exited with code '1'.

Check failure on line 1 in test_get_url_for_time_range

See this annotation in the file changed.

@azure-pipelines azure-pipelines / sunpy.radiospectra

test_get_url_for_time_range

AssertionError: assert 'https://spdf.gsfc.nasa.gov/pub/data/psp/fields/l2/rfs_lfr/2019/psp_fld_l2_rfs_lfr_20191001_v03.cdf' == 'https://spdf.gsfc.nasa.gov/pub/data/psp/fields/l2/rfs_lfr/2019/psp_fld_l2_rfs_lfr_20191001_v02.cdf'
  - https://spdf.gsfc.nasa.gov/pub/data/psp/fields/l2/rfs_lfr/2019/psp_fld_l2_rfs_lfr_20191001_v02.cdf
  ?                                                                                              ^
  + https://spdf.gsfc.nasa.gov/pub/data/psp/fields/l2/rfs_lfr/2019/psp_fld_l2_rfs_lfr_20191001_v03.cdf
  ?                                                                                              ^
Raw output
client = <radiospectra.net.sources.psp.RFSClient object at 0x7fc42f1192e0>
radiospectra.net.sources.psp.RFSClient

Provides acc...     
Provider   SPDF NASA Goddard Space Physics Data Facility
Wavelength All  All valid values                        

    @pytest.mark.remote_data
    def test_get_url_for_time_range(client):
        url_start = "https://spdf.gsfc.nasa.gov/pub/data/psp/fields/l2/rfs_lfr/2019/" "psp_fld_l2_rfs_lfr_20191001_v02.cdf"
        url_end = "https://spdf.gsfc.nasa.gov/pub/data/psp/fields/l2/rfs_hfr/2019/" "psp_fld_l2_rfs_hfr_20191015_v02.cdf"
        tr = a.Time("2019/10/01", "2019/10/15")
        res = client.search(tr)
        urls = [i["url"] for i in res]
>       assert urls[0] == url_start
E       AssertionError: assert 'https://spdf.gsfc.nasa.gov/pub/data/psp/fields/l2/rfs_lfr/2019/psp_fld_l2_rfs_lfr_20191001_v03.cdf' == 'https://spdf.gsfc.nasa.gov/pub/data/psp/fields/l2/rfs_lfr/2019/psp_fld_l2_rfs_lfr_20191001_v02.cdf'
E         - https://spdf.gsfc.nasa.gov/pub/data/psp/fields/l2/rfs_lfr/2019/psp_fld_l2_rfs_lfr_20191001_v02.cdf
E         ?                                                                                              ^
E         + https://spdf.gsfc.nasa.gov/pub/data/psp/fields/l2/rfs_lfr/2019/psp_fld_l2_rfs_lfr_20191001_v03.cdf
E         ?                                                                                              ^

../../.tox/py39-online/lib/python3.9/site-packages/radiospectra/net/sources/tests/test_psp_client.py:98: AssertionError

Check failure on line 1 in test_fido

See this annotation in the file changed.

@azure-pipelines azure-pipelines / sunpy.radiospectra

test_fido

assert 0 == 8
 +  where 0 = len(<sunpy.net.dataretriever.client.QueryResponse object at 0x7fb5aaa451f0>\n<No columns>)
Raw output
@pytest.mark.remote_data
    def test_fido():
        atr = a.Time("2010/10/01", "2010/10/02")
        res = Fido.search(atr, a.Instrument("swaves"))
    
        assert isinstance(res[1].client, SWAVESClient)
>       assert len(res[1]) == 8
E       assert 0 == 8
E        +  where 0 = len(<sunpy.net.dataretriever.client.QueryResponse object at 0x7fb5aaa451f0>\n<No columns>)

../../.tox/py39-online/lib/python3.9/site-packages/radiospectra/net/sources/tests/test_stereo_client.py:28: AssertionError

Check failure on line 1 in radiospectra.net.sources.stereo.SWAVESClient

See this annotation in the file changed.

@azure-pipelines azure-pipelines / sunpy.radiospectra

radiospectra.net.sources.stereo.SWAVESClient

022     Provides access to `STEREO S-WAVES <https://swaves.gsfc.nasa.gov/swaves_instr.html>`__ radio
023     `data archive <https://solar-radio.gsfc.nasa.gov/data/stereo>`__.
024 
025     Examples
026     --------
027     >>> import radiospectra.net
028     >>> from sunpy.net import Fido, attrs as a
029     >>> results = Fido.search(a.Time("2010/10/01", "2010/10/02"),
030     ...                       a.Instrument('SWAVES'))  # doctest: +REMOTE_DATA
031     >>> results[1] #doctest: +REMOTE_DATA
Expected:
    <sunpy.net.dataretriever.client.QueryResponse object at ...>
           Start Time               End Time        ... Provider    Wavelength
                                                    ...                kHz
    ----------------------- ----------------------- ... -------- ----------------
    2010-10-01 00:00:00.000 2010-10-01 23:59:59.999 ...     NASA    10.0 .. 160.0
    2010-10-02 00:00:00.000 2010-10-02 23:59:59.999 ...     NASA    10.0 .. 160.0
    2010-10-01 00:00:00.000 2010-10-01 23:59:59.999 ...     NASA 125.0 .. 16000.0
    2010-10-02 00:00:00.000 2010-10-02 23:59:59.999 ...     NASA 125.0 .. 16000.0
    2010-10-01 00:00:00.000 2010-10-01 23:59:59.999 ...     NASA    10.0 .. 160.0
    2010-10-02 00:00:00.000 2010-10-02 23:59:59.999 ...     NASA    10.0 .. 160.0
    2010-10-01 00:00:00.000 2010-10-01 23:59:59.999 ...     NASA 125.0 .. 16000.0
    2010-10-02 00:00:00.000 2010-10-02 23:59:59.999 ...     NASA 125.0 .. 16000.0
Got:
    <sunpy.net.dataretriever.client.QueryResponse object at 0x7fc3d6e947f0>
    <No columns>

/home/vsts/work/1/s/.tox/py39-online/lib/python3.9/site-packages/radiospectra/net/sources/stereo.py:31: DocTestFailure
Raw output
022     Provides access to `STEREO S-WAVES <https://swaves.gsfc.nasa.gov/swaves_instr.html>`__ radio
023     `data archive <https://solar-radio.gsfc.nasa.gov/data/stereo>`__.
024 
025     Examples
026     --------
027     >>> import radiospectra.net
028     >>> from sunpy.net import Fido, attrs as a
029     >>> results = Fido.search(a.Time("2010/10/01", "2010/10/02"),
030     ...                       a.Instrument('SWAVES'))  # doctest: +REMOTE_DATA
031     >>> results[1] #doctest: +REMOTE_DATA
Expected:
    <sunpy.net.dataretriever.client.QueryResponse object at ...>
           Start Time               End Time        ... Provider    Wavelength
                                                    ...                kHz
    ----------------------- ----------------------- ... -------- ----------------
    2010-10-01 00:00:00.000 2010-10-01 23:59:59.999 ...     NASA    10.0 .. 160.0
    2010-10-02 00:00:00.000 2010-10-02 23:59:59.999 ...     NASA    10.0 .. 160.0
    2010-10-01 00:00:00.000 2010-10-01 23:59:59.999 ...     NASA 125.0 .. 16000.0
    2010-10-02 00:00:00.000 2010-10-02 23:59:59.999 ...     NASA 125.0 .. 16000.0
    2010-10-01 00:00:00.000 2010-10-01 23:59:59.999 ...     NASA    10.0 .. 160.0
    2010-10-02 00:00:00.000 2010-10-02 23:59:59.999 ...     NASA    10.0 .. 160.0
    2010-10-01 00:00:00.000 2010-10-01 23:59:59.999 ...     NASA 125.0 .. 16000.0
    2010-10-02 00:00:00.000 2010-10-02 23:59:59.999 ...     NASA 125.0 .. 16000.0
Got:
    <sunpy.net.dataretriever.client.QueryResponse object at 0x7fc3d6e947f0>
    <No columns>

/home/vsts/work/1/s/.tox/py39-online/lib/python3.9/site-packages/radiospectra/net/sources/stereo.py:31: DocTestFailure

Check failure on line 1 in test_fido

See this annotation in the file changed.

@azure-pipelines azure-pipelines / sunpy.radiospectra

test_fido

assert 0 == 4
 +  where 0 = len(<sunpy.net.dataretriever.client.QueryResponse object at 0x7fc42ca09250>\n<No columns>)
Raw output
@pytest.mark.remote_data
    def test_fido():
        atr = a.Time("2010/10/01", "2010/10/02")
        res = Fido.search(atr, a.Instrument("waves"))
    
        assert isinstance(res[0].client, WAVESClient)
>       assert len(res[0]) == 4
E       assert 0 == 4
E        +  where 0 = len(<sunpy.net.dataretriever.client.QueryResponse object at 0x7fc42ca09250>\n<No columns>)

../../.tox/py39-online/lib/python3.9/site-packages/radiospectra/net/sources/tests/test_wind_client.py:27: AssertionError