Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ channels:

dependencies:
- aiohttp
- arviz
- cartopy
- cdo >=2.3.0
- cdsapi
Expand Down
1 change: 0 additions & 1 deletion environment_osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ channels:

dependencies:
- aiohttp
- arviz
- cartopy
- cdo >=2.3.0
- cdsapi
Expand Down
8 changes: 4 additions & 4 deletions esmvaltool/diag_scripts/fire/diagnostic_run_confire.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from pathlib import Path
from typing import TYPE_CHECKING

import arviz as az
import cartopy.crs as ccrs
import cf_units
import iris
Expand All @@ -32,6 +31,7 @@
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import xarray as xr
from matplotlib.colors import ListedColormap

from esmvaltool.diag_scripts.shared import ProvenanceLogger
Expand Down Expand Up @@ -357,11 +357,11 @@ def _select_post_param_name(name: str) -> np.array:
return np.reshape(out, new_shape)

try:
trace = az.from_netcdf(trace, engine="netcdf4")
trace = xr.open_datatree(trace, engine="netcdf4")
except (ValueError, OSError) as expt:
logger.debug("_select_post_param error %s", expt)
params = trace.to_dict()["posterior"]
params_names = params.keys()
params = trace["posterior"]
params_names = list(trace["posterior"].data_vars)
params = [_select_post_param_name(var) for var in params_names]
return params, list(params_names)

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ dynamic = [
]
dependencies = [
"aiohttp",
"arviz",
"cartopy",
"cdo",
"cdsapi",
Expand Down
Loading