Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notebook output fixes for Jenkins (#285)
For the following failures, matching new Jupyter build in this PR Ouranosinc/PAVICS-e2e-workflow-tests#118: ``` ______ pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb::Cell 1 _______ Notebook cell execution failed Cell 1: Cell outputs differ Input: wms = WebMapService("https://neo.gsfc.nasa.gov/wms/wms") print("Title: ", wms.identification.title) print("Type: ", wms.identification.type) print("Operations: ", [op.name for op in wms.operations]) print("GetMap options: ", wms.getOperationByName("GetMap").formatOptions) wms.contents.keys() Traceback: mismatch 'text/plain' assert reference_output == test_output failed: "odict_keys([...2_D_SKY_WV'])" == "odict_keys([...2_D_SKY_WV'])" Skipping 1250 identical leading characters in diff, use -v to show - ', 'MOD17A3H_Y_NPP', 'CERES_NETFLUX_M', 'CERES_NETFLUX_E', 'CERES_NETFLUX_D', 'AURA_NO2_M', 'AURA_NO2_E', 'AURA_NO2_D', 'CERES_LWFLUX_M', 'CERES_LWFLUX_E', 'CERES_LWFLUX_D', 'AURA_OZONE_M', 'AURA_OZONE_E', 'AURA_OZONE_D', 'PermafrostNSIDC', 'SEDAC_POP', 'GPM_3IMERGM', 'TRMM_3B43M', 'GPM_3IMERGDL', 'TRMM_3B43D', 'CERES_SWFLUX_M', 'CERES_SWFLUX_E', 'CERES_SWFLUX_D', 'SCSIE_W', 'NISE_D', 'AQUARIUS_SSS_M', 'AQUARIUS_SSS_W', 'AVHRR_SST_M', 'AVHRR_SST_E', 'MYD28M', 'MYD28W', 'MWOI_SST_M', 'MWOI_SST_W', 'MWOI_SST_D', 'AMSRE_SSTAn_M', 'AMSRE_SSTAn_W', 'AMSRE_SSTAn_D', 'MOD10C1_M_SNOW', 'MOD10C1_E_SNOW', 'MOD10C1_D_SNOW', 'SWE_M', 'CERES_INSOL_M', 'CERES_INSOL_E', 'CERES_INSOL_D', 'SRTM_RAMP2_TOPO', 'MOD_143D_RR', 'MYD_143D_RR', 'VIIRS_543D', 'AURA_UVI_CLIM_M', 'MOD_NDVI_M', 'MOD_NDVI_16', 'GRACE_LWE_M', 'MODAL2_M_SKY_WV', 'MYDAL2_M_SKY_WV', 'MODAL2_E_SKY_WV', 'MYDAL2_E_SKY_WV', 'MODAL2_D_SKY_WV', 'MYDAL2_D_SKY_WV']) ? ^^^^^^ ^^ + ', 'MOD17A2_M_PSN', 'MOD17A2_E_PSN', 'CERES_NETFLUX_M', 'CERES_NETFLUX_E', 'CERES_NETFLUX_D', 'AURA_NO2_M', 'AURA_NO2_E', 'AURA_NO2_D', 'CERES_LWFLUX_M', 'CERES_LWFLUX_E', 'CERES_LWFLUX_D', 'AURA_OZONE_M', 'AURA_OZONE_E', 'AURA_OZONE_D', 'PermafrostNSIDC', 'SEDAC_POP', 'GPM_3IMERGM', 'TRMM_3B43M', 'GPM_3IMERGDL', 'TRMM_3B43D', 'CERES_SWFLUX_M', 'CERES_SWFLUX_E', 'CERES_SWFLUX_D', 'SCSIE_W', 'NISE_D', 'AQUARIUS_SSS_M', 'AQUARIUS_SSS_W', 'AVHRR_SST_M', 'AVHRR_SST_E', 'MYD28M', 'MYD28W', 'MWOI_SST_M', 'MWOI_SST_W', 'MWOI_SST_D', 'AMSRE_SSTAn_M', 'AMSRE_SSTAn_W', 'AMSRE_SSTAn_D', 'MOD10C1_M_SNOW', 'MOD10C1_E_SNOW', 'MOD10C1_D_SNOW', 'SWE_M', 'CERES_INSOL_M', 'CERES_INSOL_E', 'CERES_INSOL_D', 'SRTM_RAMP2_TOPO', 'MOD_143D_RR', 'MYD_143D_RR', 'VIIRS_543D', 'AURA_UVI_CLIM_M', 'MOD_NDVI_M', 'MOD_NDVI_16', 'GRACE_LWE_M', 'MODAL2_M_SKY_WV', 'MYDAL2_M_SKY_WV', 'MODAL2_E_SKY_WV', 'MYDAL2_E_SKY_WV', 'MODAL2_D_SKY_WV', 'MYDAL2_D_SKY_WV']) ? ^^^^ ++++++++++++++++ ^^^^ ``` ``` ___ pavics-sdi-fix-for-jenkins/docs/source/notebooks/esgf-dap.ipynb::Cell 0 ____ Notebook cell execution failed Cell 0: Cell outputs differ Input: from pyesgf.search import SearchConnection # Create a connection for search on ESGF nodes. Note that setting `distrib=True` can lead to weird failures. conn = SearchConnection("https://esgf-node.llnl.gov/esg-search/", distrib=False) # Launch a search query. # Here we're looking for any variable related to humidity within the CMIP6 SSP2-4.5 experiment. # Results will be stored in a dictionary with keys defined by the `facets` argument. ctx = conn.new_context( project="CMIP6", experiment_id="ssp245", query="humidity", facets="variable_id,source_id", ) print("Number of results: ", ctx.hit_count) print("Variables related to humidity: ") ctx.facet_counts["variable_id"] Traceback: mismatch 'stdout' assert reference_output == test_output failed: 'Number of re... humidity: \n' == 'Number of re... humidity: \n' - Number of results: 10084 ? ^^ + Number of results: 10072 ? ^^ Variables related to humidity: ___ pavics-sdi-fix-for-jenkins/docs/source/notebooks/esgf-dap.ipynb::Cell 1 ____ Notebook cell execution failed Cell 1: Cell outputs differ Input: # Now let's look for simulations that have the `hurs` variable and pick the first member. ctx.constrain(variable_id="hurs", ensemble="r1i1p1f1") ctx.facet_counts["source_id"] Traceback: mismatch 'text/plain' assert reference_output == test_output failed: "{'UKESM1-0-L...ESS-CM2': 57}" == "{'UKESM1-0-L...ESS-CM2': 57}" Skipping 598 identical leading characters in diff, use -v to show Skipping 321 identical trailing characters in diff, use -v to show - Earth3': 817, ? ^^ + Earth3': 805, ? ^^ 'E3SM- ```
- Loading branch information