Skip to content

Commit 75a032e

Browse files
committed
address some comments
1 parent 65f69d6 commit 75a032e

File tree

7 files changed

+8
-12
lines changed

7 files changed

+8
-12
lines changed

conda-envs/environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
# Base dependencies
88
- aeppl=0.0.38
99
- aesara=2.8.7
10-
- arviz>=0.12.0
10+
- arviz>=0.13.0
1111
- blas
1212
- cachetools>=4.2.1
1313
- cloudpickle

conda-envs/environment-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
# Base dependencies
88
- aeppl=0.0.38
99
- aesara=2.8.7
10-
- arviz>=0.12.0
10+
- arviz>=0.13.0
1111
- blas
1212
- cachetools>=4.2.1
1313
- cloudpickle

conda-envs/windows-environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
# Base dependencies (see install guide for Windows)
88
- aeppl=0.0.38
99
- aesara=2.8.7
10-
- arviz>=0.12.0
10+
- arviz>=0.13.0
1111
- blas
1212
- cachetools>=4.2.1
1313
- cloudpickle

conda-envs/windows-environment-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
# Base dependencies (see install guide for Windows)
88
- aeppl=0.0.38
99
- aesara=2.8.7
10-
- arviz>=0.12.0
10+
- arviz>=0.13.0
1111
- blas
1212
- cachetools>=4.2.1
1313
- cloudpickle

pymc/backends/arviz.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,7 @@ def log_likelihood_to_xarray(self):
431431
def posterior_predictive_to_xarray(self):
432432
"""Convert posterior_predictive samples to xarray."""
433433
data = self.posterior_predictive
434-
dims = {
435-
var_name: self.sample_dims + self.dims.get(var_name, []) for var_name in data.keys()
436-
}
434+
dims = {var_name: self.sample_dims + self.dims.get(var_name, []) for var_name in data}
437435
return dict_to_dataset(
438436
data, library=pymc, coords=self.coords, dims=dims, default_dims=self.sample_dims
439437
)
@@ -442,9 +440,7 @@ def posterior_predictive_to_xarray(self):
442440
def predictions_to_xarray(self):
443441
"""Convert predictions (out of sample predictions) to xarray."""
444442
data = self.predictions
445-
dims = {
446-
var_name: self.sample_dims + self.dims.get(var_name, []) for var_name in data.keys()
447-
}
443+
dims = {var_name: self.sample_dims + self.dims.get(var_name, []) for var_name in data}
448444
return dict_to_dataset(
449445
data, library=pymc, coords=self.coords, dims=dims, default_dims=self.sample_dims
450446
)

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
aeppl==0.0.38
55
aesara==2.8.7
6-
arviz>=0.12.0
6+
arviz>=0.13.0
77
cachetools>=4.2.1
88
cloudpickle
99
fastprogress>=0.2.0

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
aeppl==0.0.38
22
aesara==2.8.7
3-
arviz>=0.12.0
3+
arviz>=0.13.0
44
cachetools>=4.2.1
55
cloudpickle
66
fastprogress>=0.2.0

0 commit comments

Comments
 (0)