-
Notifications
You must be signed in to change notification settings - Fork 2
CaSR_basic.ipynb; update output for Jenkins #372
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` _______ 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_NAM_GovCan_CaSR_v32_1980-2024.ncml" # Open dataset. For hourly data, we suggest using the following chunking pattern: dict(time=1461, rlon=50, rlat=50) : 4 year chunks in time dim 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... CaSRv3.2' == '<xarray.Data... CaSRv3.2' - <xarray.Dataset> Size: 2TB ? ^ + <xarray.Dataset> Size: 1TB ? ^ Dimensions: (rlat: 778, rlon: 706, time: 16437) Coordinates: * rlat (rlat) float32 3kB -44.1 -44.01 -43.92 ... 25.65 25.74 25.83 * rlon (rlon) float32 3kB -35.4 -35.31 -35.22 ... 27.87 27.96 28.05 rotated_pole int32 4B ... * time (time) datetime64[ns] 131kB/DATE/... 2024-12-31 lat (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray> lon (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray> - Data variables: (12/49) ? ^ + Data variables: (12/41) ? ^ - orog (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray> - sftgif (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray> - sftlf (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray> - sftlkf (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray> - sftof (rlat, rlon) float32 2MB dask.array<chunksize=(50, 50), meta=np.ndarray> 20mWind (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> + 20mWinddir (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> + cfia (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> + hur (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> + hurmax (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> + hurmin (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> ... ... + vas (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> + winddir (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> + zcrd09975 (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> zcrd10000 (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> snd (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> snw (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> - ta (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> - tamax (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> - tamin (time, rlat, rlon) float32 36GB dask.array<chunksize=(1461, 50, 50), meta=np.ndarray> - Attributes: (12/30) ? ^^ + Attributes: (12/29) ? ^^ Conventions: CF-1.8 Remarks: Original variable names are following the conven... contact: doi: https://doi.org/10.5194/hess-25-4917-2021 - domain: NAM - frequency: fx ? ^^ + frequency: day ? ^^^ + history: DATE_TIME_NS: Variables converted ... ... ... format: netcdf description: Original data source: https://hpfx.collab.scienc... institute: Environment and Climate Change Canada institute_id: ECCC dataset_description: https://hpfx.collab.science.gc.ca/~scar700/rcas-... dataset_id: CaSRv3.2 _______ 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... CaSRv3.2' == '<xarray.Data... CaSRv3.2' - <xarray.Dataset> Size: 45GB ? ^ + <xarray.Dataset> Size: 42GB ? ^ Dimensions: (rlat: 156, rlon: 150, time: 10957) Coordinates: (6) - Data variables: (49) ? ^ + Data variables: (41) ? ^ - Attributes: (12/30) ? ^^ + Attributes: (12/29) ? ^^ Conventions: CF-1.8 Remarks: Original variable names are following the conven... contact: doi: https://doi.org/10.5194/hess-25-4917-2021 - domain: NAM - frequency: fx ? ^^ + frequency: day ? ^^^ + history: DATE_TIME_NS: Variables converted ... ... ... format: netcdf description: Original data source: https://hpfx.collab.scienc... institute: Environment and Climate Change Canada institute_id: ECCC dataset_description: https://hpfx.collab.science.gc.ca/~scar700/rcas-... dataset_id: CaSRv3.2 _______ 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...ude_longitude' == '<xarray.Data...ude_longitude' Skipping 116 identical leading characters in diff, use -v to show Skipping 92 identical trailing characters in diff, use -v to show utes: + grid_north_pole_longitude: 87.59703130293302 north_pole_grid_longitude: 0.0 grid_north_pole_latitude: 31.758312454493154 - grid_north_pole_longitude: 87.59703130293302 eart ```
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
for more information, see https://pre-commit.ci
tlogan2000
approved these changes
Jan 23, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Diff coming from #371