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

Refresh notebook outputs for new Jupyter env #327

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

tlvu
Copy link
Contributor

@tlvu tlvu commented May 10, 2024

tlvu added 6 commits May 9, 2024 22:26
```
  _______ pavics-sdi-master/docs/source/notebooks/CaSR_basic.ipynb::Cell 0 _______
  Notebook cell execution failed
  Cell 0: Cell outputs differ

  Input:
  import xarray as xr

  url = "https://pavics.ouranos.ca/twitcher/ows/proxy/thredds/dodsC/datasets/reanalyses/day_RDRSv2.1_NAM.ncml"

  # Open dataset. For hourly data, we suggest using the following chunking pattern: dict(time=720, rlon=50, rlat=50)
  ds = xr.open_dataset(url, chunks=dict(time=1461, rlon=50, rlat=50))
  ds

  Traceback:
   mismatch 'text/plain'

   assert reference_output == test_output failed:

    '<xarray.Data... Carrera, ...' == '<xarray.Data... Carrera, ...'

    - <xarray.Dataset> Size: 418GB
    + <xarray.Dataset>
      Dimensions:       (rlat: 800, rlon: 706, time: 14245)
      Coordinates:
    -   * rlat          (rlat) float32 3kB -46.17 -46.08 -45.99 ... 25.56 25.65 25.74
    ?                                  ----
    +   * rlat          (rlat) float32 -46.17 -46.08 -45.99 ... 25.56 25.65 25.74
    -   * rlon          (rlon) float32 3kB 324.6 324.7 324.8 ... 387.9 388.0 388.1
    ?                                  ----
    +   * rlon          (rlon) float32 324.6 324.7 324.8 324.9 ... 387.9 388.0 388.1
    ?                                                    ++++++
    -     rotated_pole  float32 4B ...
    ?                           ---
    +     rotated_pole  float32 ...
    -   * time          (time) datetime64[ns] 114kB/DATE/... 2018-12-31
    ?                                        ------
    +   * time          (time) datetime64[ns]/DATE/1980-01-02 ... 2018-12-31
    ?                                              +++++++++++
    -     lat           (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray>
    ?                                       ----
    +     lat           (rlat, rlon) float32 dask.array<chunksize=(50, 50), meta=np.ndarray>
    -     lon           (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray>
    ?                                       ----
    +     lon           (rlat, rlon) float32 dask.array<chunksize=(50, 50), meta=np.ndarray>
      Data variables: (12/16)
    -     lakeFrac      (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray>
    ?                                       ----
    +     lakeFrac      (rlat, rlon) float32 dask.array<chunksize=(50, 50), meta=np.ndarray>
    -     sftlf         (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray>
    ?                                       ----
    +     sftlf         (rlat, rlon) float32 dask.array<chunksize=(50, 50), meta=np.ndarray>
    -     sftof         (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray>
    ?                                       ----
    +     sftof         (rlat, rlon) float32 dask.array<chunksize=(50, 50), meta=np.ndarray>
    -     tas           (time, rlat, rlon) float32 32GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    ?                                             -----
    +     tas           (time, rlat, rlon) float32 dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    -     tasmin        (time, rlat, rlon) float32 32GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    ?                                             -----
    +     tasmin        (time, rlat, rlon) float32 dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    -     tasmax        (time, rlat, rlon) float32 32GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    ?                                             -----
    +     tasmax        (time, rlat, rlon) float32 dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
          ...            ...
    -     psl           (time, rlat, rlon) float32 32GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    ?                                             -----
    +     psl           (time, rlat, rlon) float32 dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    -     ps            (time, rlat, rlon) float32 32GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    ?                                             -----
    +     ps            (time, rlat, rlon) float32 dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    -     huss          (time, rlat, rlon) float32 32GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    ?                                             -----
    +     huss          (time, rlat, rlon) float32 dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    -     hursmin       (time, rlat, rlon) float32 32GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    ?                                             -----
    +     hursmin       (time, rlat, rlon) float32 dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    -     hursmax       (time, rlat, rlon) float32 32GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    ?                                             -----
    +     hursmax       (time, rlat, rlon) float32 dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    -     hurs          (time, rlat, rlon) float32 32GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
    ?                                             -----
    +     hurs          (time, rlat, rlon) float32 dask.array<chunksize=(1461, 50, 50), meta=np.ndarray>
      Attributes: (12/29)
          Conventions:          CF-1.8
          Notes:                Created from the Gem_geophy.fst file provided by Mi...
          doi:                  https://doi.org/10.5194/hess-25-4917-2021
          frequency:            fx
          license:              https://eccc-msc.github.io/open-data/licence/readme...
          organisation:         ECCC
          ...                   ...
          institute_id:         ECCC
          dataset_id:           RDRSv2.1
          abstract:             Environment and Climate Change Canada has initiated...
          dataset_description:  https://doi.org/10.5194/hess-25-4917-2021
          license_type:         permissive
          citation:             Gasset, N., Fortin, V., Dimitrijevic, M., Carrera, ...

  _______ pavics-sdi-master/docs/source/notebooks/CaSR_basic.ipynb::Cell 1 _______
  Notebook cell execution failed
  Cell 1: Cell outputs differ

  Input:
  from clisops.core import subset
  from dask.diagnostics import ProgressBar
  from matplotlib import pyplot as plt

  # Subset bounding box
  lon_bnds = [-70, -55]
  lat_bnds = [44, 55]

  # Loading the coordinate data speeds up the subsetting process a little
  for coord in ["lat", "lon"]:
      ds[coord] = ds[coord].load()

  # Subset bbox
  bbox = subset.subset_bbox(
      ds, lon_bnds=lon_bnds, lat_bnds=lat_bnds, start_date="1981", end_date="2010"
  )

  # Subset gridpoint
  site = subset.subset_gridpoint(ds, lat=40, lon=-60)

  with xr.set_options(display_expand_data_vars=False, display_expand_coords=False):
      display(bbox)
      display(site)

  Traceback:
   mismatch 'text/plain'

   assert reference_output == test_output failed:

    '<xarray.Data... Carrera, ...' == '<xarray.Data... Carrera, ...'

    - <xarray.Dataset> Size: 13GB
    ?                 -----------
    + <xarray.Dataset>
      Dimensions:       (rlat: 156, rlon: 150, time: 10957)
      Coordinates: (6)
      Data variables: (16)
      Attributes: (12/29)
          Conventions:          CF-1.8
          Notes:                Created from the Gem_geophy.fst file provided by Mi...
          doi:                  https://doi.org/10.5194/hess-25-4917-2021
          frequency:            fx
          license:              https://eccc-msc.github.io/open-data/licence/readme...
          organisation:         ECCC
          ...                   ...
          institute_id:         ECCC
          dataset_id:           RDRSv2.1
          abstract:             Environment and Climate Change Canada has initiated...
          dataset_description:  https://doi.org/10.5194/hess-25-4917-2021
          license_type:         permissive
          citation:             Gasset, N., Fortin, V., Dimitrijevic, M., Carrera, ...

  _______ pavics-sdi-master/docs/source/notebooks/CaSR_basic.ipynb::Cell 4 _______
  Notebook cell execution failed
  Cell 4: Cell outputs differ

  Input:
  bbox.rotated_pole

  Traceback:
   mismatch 'text/plain'

   assert reference_output == test_output failed:

    '<xarray.Data...itude:    0.0' == '<xarray.Data...itude:    0.0'

    - <xarray.DataArray 'rotated_pole' ()> Size: 4B
    ?                                     ---------
    + <xarray.DataArray 'rotated_pole' ()>
      array(9.96921e+36, dtype=float32)
      Coordinates:
    -     rotated_pole  float32 4B 9.969e+36
    ?                          ---
    +     rotated_pole  float32 9.969e+36
      Attributes:
          earth_radius:                 6371220.0
          grid_mapping_name:            rotated_latitude_longitude
          grid_north_pole_latitude:     31.758316040039062
          grid_north_pole_longitude:    87.59703063964844
          long_name:                    coordinates of the rotated North Pole
          longitude_of_prime_meridian:  0.0
          north_pole_grid_longitude:    0.0
```
```
  ______ pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb::Cell 5 _______
  Notebook cell execution failed
  Cell 5: Cell outputs differ

  Input:
  ds = xr.open_dataset(fn)
  print(ds.data_vars)
  ds.Band1.plot()
  plt.show()

  Traceback:
   mismatch 'stdout'

   assert reference_output == test_output failed:

    'Data variabl...float32 ...\n' == 'Data variabl...t32 6MB ...\n'

      Data variables:
    -     crs      |S1 1B ...
    ?                 ---
    +     crs      |S1 ...
    -     Band1    (lat, lon) float32 6MB ...
    ?                                 ----
    +     Band1    (lat, lon) float32 ...
```
```
  _________ pavics-sdi-master/docs/source/notebooks/climex.ipynb::Cell 1 _________
  Notebook cell execution failed
  Cell 1: Cell outputs differ

  Input:
  # Opening the link takes a while, because the server creates an aggregated view of 435,000 individual files.
  url = cat.df.path[0]
  ds = xr.open_dataset(url, chunks=dict(realization=2, time=30 * 3))
  ds

  Traceback:
   mismatch 'text/plain'

   assert reference_output == test_output failed:

    '<xarray.Data...N.string1:  1' == '<xarray.Data...N.string1:  1'

    - <xarray.Dataset> Size: 4TB
    ?                 ----------
    + <xarray.Dataset>
      Dimensions:       (rlat: 280, rlon: 280, time: 52924, realization: 50)
      Coordinates:
    -   * rlat          (rlat) float64 2kB -12.61 -12.51 -12.39 ... 17.85 17.96 18.07
    ?                                  ----
    +   * rlat          (rlat) float64 -12.61 -12.51 -12.39 ... 17.85 17.96 18.07
    -   * rlon          (rlon) float64 2kB 2.695 2.805 2.915 ... 33.17 33.28 33.39
    ?                                  ----
    +   * rlon          (rlon) float64 2.695 2.805 2.915 3.025 ... 33.17 33.28 33.39
    ?                                                    ++++++
    -   * time          (time) object 423kB/DATE/TIME/.../DATE/00:0...
    ?                                ------                        ^^^
    +   * time          (time) object/DATE/TIME/.../DATE/00:00:00
    ?                                                        ^^^^
    -   * realization   (realization) |S64 3kB b'historical-r1-r10i1p1' ... b'histo...
    ?                                     ----
    +   * realization   (realization) |S64 b'historical-r1-r10i1p1' ... b'historica...
    ?                                                                          ++++
    -     lat           (rlat, rlon) float32 314kB dask.array<chunksize=(280, 280), meta=np.ndarray>
    ?                                       ------
    +     lat           (rlat, rlon) float32 dask.array<chunksize=(280, 280), meta=np.ndarray>
    -     lon           (rlat, rlon) float32 314kB dask.array<chunksize=(280, 280), meta=np.ndarray>
    ?                                       ------
    +     lon           (rlat, rlon) float32 dask.array<chunksize=(280, 280), meta=np.ndarray>
      Data variables:
    -     rotated_pole  |S64 64B ...
    ?                        ----
    +     rotated_pole  |S64 ...
    -     tasmin        (realization, time, rlat, rlon) float32 830GB dask.array<chunksize=(2, 90, 280, 280), meta=np.ndarray>
    ?                                                          ------
    +     tasmin        (realization, time, rlat, rlon) float32 dask.array<chunksize=(2, 90, 280, 280), meta=np.ndarray>
    -     tasmax        (realization, time, rlat, rlon) float32 830GB dask.array<chunksize=(2, 90, 280, 280), meta=np.ndarray>
    ?                                                          ------
    +     tasmax        (realization, time, rlat, rlon) float32 dask.array<chunksize=(2, 90, 280, 280), meta=np.ndarray>
    -     tas           (realization, time, rlat, rlon) float32 830GB dask.array<chunksize=(2, 90, 280, 280), meta=np.ndarray>
    ?                                                          ------
    +     tas           (realization, time, rlat, rlon) float32 dask.array<chunksize=(2, 90, 280, 280), meta=np.ndarray>
    -     pr            (realization, time, rlat, rlon) float32 830GB dask.array<chunksize=(2, 90, 280, 280), meta=np.ndarray>
    ?                                                          ------
    +     pr            (realization, time, rlat, rlon) float32 dask.array<chunksize=(2, 90, 280, 280), meta=np.ndarray>
    -     prsn          (realization, time, rlat, rlon) float32 830GB dask.array<chunksize=(2, 90, 280, 280), meta=np.ndarray>
    ?                                                          ------
    +     prsn          (realization, time, rlat, rlon) float32 dask.array<chunksize=(2, 90, 280, 280), meta=np.ndarray>
      Attributes: (12/30)
          Conventions:              CF-1.6
          DODS.dimName:             string1
          DODS.strlen:              0
          EXTRA_DIMENSION.bnds:     2
          NCO:                      "4.5.2"
          abstract:                 The ClimEx CRCM5 Large Ensemble of high-resolut...
          ...                       ...
          project_id:               CLIMEX
          rcm_version_id:           v3331
          terms_of_use:             http://www.climex-project.org/sites/default/fil...
          title:                    The ClimEx CRCM5 Large Ensemble
          type:                     RCM
          EXTRA_DIMENSION.string1:  1

  _________ pavics-sdi-master/docs/source/notebooks/climex.ipynb::Cell 5 _________
  Notebook cell execution failed
  Cell 5: Cell outputs differ

  Input:
  ds = xr.open_dataset(
      url, chunks=dict(realization=1, time=365, rlat=50 * 3, rlon=50 * 3)
  )
  xclim.set_options(check_missing="pct", missing_options={"pct": {"tolerance": 0.05}})
  sdii = xclim.atmos.daily_pr_intensity(pr=ds.pr.sel(time="2000"))
  sdii

  Traceback:
   mismatch 'text/plain'

   assert reference_output == test_output failed:

    '<xarray.Data...nnual aver...' == '<xarray.Data...nnual aver...'

    Skipping 64 identical leading characters in diff, use -v to show
    - lon: 280)> Size: 31MB
    + lon: 280)>
      dask.array<where, shape=(50, 1, 280, 280), dtype=float64, chunksize=(1, 1, 150, 150), chunktype=numpy.ndarray>
      Coordinates:
    -   * rlat         (rlat) float64 2kB -12.61 -12.51 -12.39 ... 17.85 17.96 18.07
    ?                                 ----
    +   * rlat         (rlat) float64 -12.61 -12.51 -12.39 ... 17.85 17.96 18.07
    -   * rlon         (rlon) float64 2kB 2.695 2.805 2.915 ... 33.17 33.28 33.39
    ?                                 ----
    +   * rlon         (rlon) float64 2.695 2.805 2.915 3.025 ... 33.17 33.28 33.39
    ?                                                   ++++++
    -   * realization  (realization) |S64 3kB b'historical-r1-r10i1p1' ... b'histor...
    ?                                    ----
    +   * realization  (realization) |S64 b'historical-r1-r10i1p1' ... b'historical...
    ?                                                                          ++++
    -     lat          (rlat, rlon) float32 314kB dask.array<chunksize=(150, 150), meta=np.ndarray>
    ?                                      ------
    +     lat          (rlat, rlon) float32 dask.array<chunksize=(150, 150), meta=np.ndarray>
    -     lon          (rlat, rlon) float32 314kB dask.array<chunksize=(150, 150), meta=np.ndarray>
    ?                                      ------
    +     lon          (rlat, rlon) float32 dask.array<chunksize=(150, 150), meta=np.ndarray>
    -   * time         (time) object 8B/DATE/00:00:00
    ?                               ---
    +   * time         (time) object/DATE/00:00:00
      Attributes:
          units:          mm d-1
          cell_methods:   time: mean
          history:        [DATE_TIME] sdii: SDII(pr=pr, thresh='1 mm/day'...
          standard_name:  lwe_thickness_of_precipitation_amount
          long_name:      Average precipitation during days with daily precipitatio...
          description:    Annual simple daily intensity index (sdii) or annual aver...

  _________ pavics-sdi-master/docs/source/notebooks/climex.ipynb::Cell 8 _________
  Notebook cell execution failed
  Cell 8: Cell outputs differ

  Input:
  # Subset over the Montreal gridpoint
  ds = xr.open_dataset(url, chunks=dict(realization=1, time=365 * 50, rlon=25, rlat=25))
  pt = subset_gridpoint(ds, lon=-73.69, lat=45.50)
  print("Input dataset for Montreal :")
  display(pt)
  out = xclim.atmos.max_1day_precipitation_amount(pr=pt.pr, freq="YS")
  print("Maximim 1-day precipitation `lazy` output ..")
  out

  Traceback:
   mismatch 'text/plain'

   assert reference_output == test_output failed:

    '<xarray.Data...N.string1:  1' == '<xarray.Data...N.string1:  1'

    - <xarray.Dataset> Size: 53MB
    ?                 -----------
    + <xarray.Dataset>
      Dimensions:       (time: 52924, realization: 50)
      Coordinates:
    -     rlat          float64 8B 0.365
    ?                           ---
    +     rlat          float64 0.365
    -     rlon          float64 8B 16.12
    ?                           ---
    +     rlon          float64 16.12
    -   * time          (time) object 423kB/DATE/TIME/.../DATE/00:0...
    ?                                ------                        ^^^
    +   * time          (time) object/DATE/TIME/.../DATE/00:00:00
    ?                                                        ^^^^
    -   * realization   (realization) |S64 3kB b'historical-r1-r10i1p1' ... b'histo...
    ?                                     ----
    +   * realization   (realization) |S64 b'historical-r1-r10i1p1' ... b'historica...
    ?                                                                          ++++
    -     lat           float32 4B 45.45
    ?                           ---
    +     lat           float32 45.45
    -     lon           float32 4B -73.7
    ?                           ---
    +     lon           float32 -73.7
      Data variables:
    -     rotated_pole  |S64 64B b''
    ?                        ----
    +     rotated_pole  |S64 b''
    -     tasmin        (realization, time) float32 11MB dask.array<chunksize=(1, 18250), meta=np.ndarray>
    ?                                              -----
    +     tasmin        (realization, time) float32 dask.array<chunksize=(1, 18250), meta=np.ndarray>
    -     tasmax        (realization, time) float32 11MB dask.array<chunksize=(1, 18250), meta=np.ndarray>
    ?                                              -----
    +     tasmax        (realization, time) float32 dask.array<chunksize=(1, 18250), meta=np.ndarray>
    -     tas           (realization, time) float32 11MB dask.array<chunksize=(1, 18250), meta=np.ndarray>
    ?                                              -----
    +     tas           (realization, time) float32 dask.array<chunksize=(1, 18250), meta=np.ndarray>
    -     pr            (realization, time) float32 11MB dask.array<chunksize=(1, 18250), meta=np.ndarray>
    ?                                              -----
    +     pr            (realization, time) float32 dask.array<chunksize=(1, 18250), meta=np.ndarray>
    -     prsn          (realization, time) float32 11MB dask.array<chunksize=(1, 18250), meta=np.ndarray>
    ?                                              -----
    +     prsn          (realization, time) float32 dask.array<chunksize=(1, 18250), meta=np.ndarray>
      Attributes: (12/30)
          Conventions:              CF-1.6
          DODS.dimName:             string1
          DODS.strlen:              0
          EXTRA_DIMENSION.bnds:     2
          NCO:                      "4.5.2"
          abstract:                 The ClimEx CRCM5 Large Ensemble of high-resolut...
          ...                       ...
          project_id:               CLIMEX
          rcm_version_id:           v3331
          terms_of_use:             http://www.climex-project.org/sites/default/fil...
          title:                    The ClimEx CRCM5 Large Ensemble
          type:                     RCM
          EXTRA_DIMENSION.string1:  1
```
```
  ________ pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb::Cell 5 ________
  Notebook cell execution failed
  Cell 5: Cell outputs differ

  Input:
  # Open the opendap link with xarray
  import xarray as xr

  ds = xr.open_mfdataset(urls)
  ds

  Traceback:
   mismatch 'text/plain'

   assert reference_output == test_output failed:

    '<xarray.Data...ension:  time' == '<xarray.Data...ension:  time'

    - <xarray.Dataset> Size: 643MB
    + <xarray.Dataset>
      Dimensions:    (time: 1032, bnds: 2, plev: 19, lat: 64, lon: 128)
      Coordinates:
    -   * time       (time) object 8kB/DATE/TIME/.../DATE/12:00:00
    ?                             ----
    +   * time       (time) object/DATE/TIME/.../DATE/12:00:00
    -   * plev       (plev) float64 152B 1e+05 9.25e+04 8.5e+04 ... 1e+03 500.0 100.0
    ?                               -----
    +   * plev       (plev) float64 1e+05 9.25e+04 8.5e+04 7e+04 ... 1e+03 500.0 100.0
    ?                                                      ++++++
    -   * lat        (lat) float64 512B -87.86 -85.1 -82.31 ... 82.31 85.1 87.86
    ?                              -----
    +   * lat        (lat) float64 -87.86 -85.1 -82.31 -79.53 ... 82.31 85.1 87.86
    ?                                                  +++++++
    -   * lon        (lon) float64 1kB 0.0 2.812 5.625 8.438 ... 351.6 354.4 357.2
    ?                              ----
    +   * lon        (lon) float64 0.0 2.812 5.625 8.438 ... 348.8 351.6 354.4 357.2
    ?                                                       ++++++
      Dimensions without coordinates: bnds
      Data variables:
    -     time_bnds  (time, bnds) object 17kB dask.array<chunksize=(1032, 2), meta=np.ndarray>
    ?                                   -----
    +     time_bnds  (time, bnds) object dask.array<chunksize=(1032, 2), meta=np.ndarray>
    -     lat_bnds   (lat, bnds) float64 1kB dask.array<chunksize=(64, 2), meta=np.ndarray>
    ?                                   ----
    +     lat_bnds   (lat, bnds) float64 dask.array<chunksize=(64, 2), meta=np.ndarray>
    -     lon_bnds   (lon, bnds) float64 2kB dask.array<chunksize=(128, 2), meta=np.ndarray>
    ?                                   ----
    +     lon_bnds   (lon, bnds) float64 dask.array<chunksize=(128, 2), meta=np.ndarray>
    -     hus        (time, plev, lat, lon) float32 643MB dask.array<chunksize=(1032, 19, 64, 128), meta=np.ndarray>
    ?                                              ------
    +     hus        (time, plev, lat, lon) float32 dask.array<chunksize=(1032, 19, 64, 128), meta=np.ndarray>
      Attributes: (12/54)
          CCCma_model_hash:                fc4bb7db954c862d023b546e19aec6c588bc0552
          CCCma_parent_runid:              p2-his14
          CCCma_pycmor_hash:               26c970628162d607fffd14254956ebc6dd3b6f49
          CCCma_runid:                     p2-s4514
          Conventions:                     CF-1.7 CMIP-6.2
          YMDH_branch_time_in_child:       2015:01:01:00
          ...                              ...
          variable_id:                     hus
          variant_label:                   r14i1p2f1
          version:                         v20190429
          license:                         CMIP6 model data produced by The Governm...
          cmor_version:                    3.5.0
          DODS_EXTRA.Unlimited_Dimension:  time
```
```
  _______ pavics-sdi-master/docs/source/notebooks/forecasts.ipynb::Cell 5 ________
  Notebook cell execution failed
  Cell 5: Cell outputs differ

  Input:
  hdd.hvplot.hist(groupby="time", legend=False, width=300) + cdd.hvplot.hist(
      groupby="time", legend=False, width=300
  )

  Traceback:
   mismatch 'text/plain'

   assert reference_output == test_output failed:

    ':Layout\n   ...e_days_count)' == ':Layout\n   ...e_days_count)'

    Skipping 57 identical leading characters in diff, use -v to show
    - verlay   [Variable]
    + verlay   [Element]
               :Histogram   [heating_degree_days]   (heating_degree_days_count)
         .DynamicMap.II :DynamicMap   [time]
    -       :NdOverlay   [Variable]
    ?                     ^^^^^^
    +       :NdOverlay   [Element]
    ?                     ^  ++++
               :Histogram   [cooling_degree_days]   (cooling_degree_days_count)
```
```
  _______ pavics-sdi-master/docs/source/notebooks/subsetting.ipynb::Cell 4 _______
  Notebook cell execution failed
  Cell 4: Cell outputs differ

  Input:
  res = resp.get()
  print("URL: ", res.output)
  res = resp.get(asobj=True)
  res.output

  Traceback:
   mismatch 'text/plain'

   assert reference_output == test_output failed:

    '<xarray.Data...        2.6.0' == '<xarray.Data...        2.6.0'

    - <xarray.Dataset> Size: 385B
    ?                 -----------
    + <xarray.Dataset>
      Dimensions:             (time: 12, region: 1, bnds: 2)
      Coordinates:
    -   * time                (time) datetime64[ns] 96B 2006-01-16T12:00:00 ... 200...
    ?                                              ----
    +   * time                (time) datetime64[ns] 2006-01-16T12:00:00 ... 2006-12...
    ?                                                                          ++++
    -     lat                 float64 8B ...
    ?                                 ---
    +     lat                 float64 ...
    -     lon                 float64 8B ...
    ?                                 ---
    +     lon                 float64 ...
      Dimensions without coordinates: region, bnds
      Data variables:
    -     time_bnds           (region, time, bnds) datetime64[ns] 192B ...
    ?                                                             -----
    +     time_bnds           (region, time, bnds) datetime64[ns] ...
    -     lat_bnds            (region, bnds) float64 16B ...
    ?                                                ----
    +     lat_bnds            (region, bnds) float64 ...
    -     lon_bnds            (region, bnds) float64 16B ...
    ?                                                ----
    +     lon_bnds            (region, bnds) float64 ...
    -     latitude_longitude  (region) |S1 1B ...
    ?                                     ---
    +     latitude_longitude  (region) |S1 ...
    -     tasmax              (region, time) float32 48B ...
    ?                                                ----
    +     tasmax              (region, time) float32 ...
      Attributes: (12/27)
          institution:            Max Planck Institute for Meteorology
          institute_id:           MPI-M
          experiment_id:          rcp45
          source:                 MPI-ESM-MR 2011; URL: http://svn.zmaw.de/svn/cosm...
          model_id:               MPI-ESM-MR
          forcing:                GHG,Oz,SD,Sl,Vl,LU
          ...                     ...
          table_id:               Table Amon (27 April 2011) a5a1c518f52ae340313ba0...
          title:                  MPI-ESM-MR model output prepared for CMIP5 RCP4.5
          parent_experiment:      historical
          modeling_realm:         atmos
          realization:            1
          cmor_version:           2.6.0
```
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant