Skip to content

Commit

Permalink
Fixed bug in extracting prior samples for cmdstanpy. (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbois authored and ahartikainen committed Dec 29, 2019
1 parent 8678248 commit f4f68d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arviz/data/io_cmdstanpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def prior_to_xarray(self):
]

valid_cols = [col for col in columns if col not in set(prior_predictive)]
data = _unpack_frame(self.posterior.sample, columns, valid_cols)
data = _unpack_frame(self.prior.sample, columns, valid_cols)
return dict_to_dataset(data, library=self.cmdstanpy, coords=self.coords, dims=self.dims)

@requires("prior")
Expand Down

0 comments on commit f4f68d9

Please sign in to comment.