Skip to content

Commit

Permalink
Merge pull request #7618 from nabobalis/ci
Browse files Browse the repository at this point in the history
Fix CI a bit more
  • Loading branch information
nabobalis committed May 11, 2024
2 parents c3e85b2 + 589b6de commit d61e76e
Show file tree
Hide file tree
Showing 7 changed files with 552 additions and 561 deletions.
189 changes: 93 additions & 96 deletions docs/tutorial/acquiring_data/index.rst

Large diffs are not rendered by default.

893 changes: 443 additions & 450 deletions docs/tutorial/acquiring_data/jsoc.rst

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ addopts =
--dist no
--arraydiff
--doctest-ignore-import-errors
--doctest-continue-on-failure
asdf_schema_tests_enabled = true
asdf_schema_root = sunpy/io/special/asdf/resources/
mpl-results-path = figure_test_images
Expand Down
5 changes: 3 additions & 2 deletions sunpy/map/tests/test_mapbase_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ def aia171_test_dask_map(aia171_test_map):

def test_dask_array_repr(aia171_test_dask_map):
# Check that _repr_html_ functions for a dask array
html_dask_repr = aia171_test_dask_map._repr_html_(compute_dask=False)
html_computed_repr = aia171_test_dask_map._repr_html_(compute_dask=True)
with np.errstate(divide='ignore'):
html_dask_repr = aia171_test_dask_map._repr_html_(compute_dask=False)
html_computed_repr = aia171_test_dask_map._repr_html_(compute_dask=True)
assert html_dask_repr != html_computed_repr


Expand Down
2 changes: 1 addition & 1 deletion sunpy/net/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def total_size(self):
# Find the first power of 3 below the total filesize
power = 10**(np.floor(np.log10(total.to_value(u.byte)) // 3) * 3)
# Create mapping from prefix value to prefix name
prefix_dict = {p[2]: p[0][0] for p in u.si_prefixes}
prefix_dict = {p[2]: p[0][0] for p in u.core.si_prefixes}
prefix_unit = u.Unit(f'{prefix_dict[power]}byte')
return total.to(prefix_unit).round(3)

Expand Down
12 changes: 6 additions & 6 deletions sunpy/net/dataretriever/sources/goes.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,12 @@ class SUVIClient(GenericClient):
3 Results from the SUVIClient:
Source: https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes
<BLANKLINE>
Start Time End Time Instrument ... Level Wavelength
... Angstrom
----------------------- ----------------------- ---------- ... ----- ----------
2020-07-10 00:00:00.000 2020-07-10 00:04:00.000 SUVI ... 2 304.0
2020-07-10 00:04:00.000 2020-07-10 00:08:00.000 SUVI ... 2 304.0
2020-07-10 00:08:00.000 2020-07-10 00:12:00.000 SUVI ... 2 304.0
Start Time End Time Instrument Physobs Source Provider SatelliteNumber Level Wavelength
Angstrom
----------------------- ----------------------- ---------- ------- ------ -------- --------------- ----- ----------
2020-07-10 00:00:00.000 2020-07-10 00:04:00.000 SUVI flux GOES NOAA 16 2 304.0
2020-07-10 00:04:00.000 2020-07-10 00:08:00.000 SUVI flux GOES NOAA 16 2 304.0
2020-07-10 00:08:00.000 2020-07-10 00:12:00.000 SUVI flux GOES NOAA 16 2 304.0
<BLANKLINE>
<BLANKLINE>
"""
Expand Down
11 changes: 5 additions & 6 deletions sunpy/net/dataretriever/sources/norh.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ class NoRHClient(GenericClient):
2 Results from the NoRHClient:
Source: https://solar.nro.nao.ac.jp/norh/doc/manuale/node1.html
<BLANKLINE>
Start Time End Time ... Provider Wavelength
... GHz
----------------------- ----------------------- ... -------- ----------
2016-01-01 00:00:00.000 2016-01-01 23:59:59.999 ... NRO 17.0
2016-01-02 00:00:00.000 2016-01-02 23:59:59.999 ... NRO 17.0
Start Time End Time Instrument Source Provider Wavelength
GHz
----------------------- ----------------------- ---------- ------ -------- ----------
2016-01-01 00:00:00.000 2016-01-01 23:59:59.999 NORH NAOJ NRO 17.0
2016-01-02 00:00:00.000 2016-01-02 23:59:59.999 NORH NAOJ NRO 17.0
<BLANKLINE>
<BLANKLINE>
"""
baseurl = r'ftp://solar-pub.nao.ac.jp/pub/nsro/norh/data/tcx/%Y/%m/(\w){3}%y%m%d'
pattern = '{}/tcx/{year:4d}/{month:2d}/{Wavelength:3l}{:4d}{day:2d}'
Expand Down

0 comments on commit d61e76e

Please sign in to comment.