diff --git a/CHANGELOG.md b/CHANGELOG.md index 59fa526c1c..77b1ae87dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ ### Maintenance and fixes +- Fixes for creating numpy object array ([2233](https://github.com/arviz-devs/arviz/pull/2233) and [2239](https://github.com/arviz-devs/arviz/pull/2239)) + ### Deprecation ### Documentation diff --git a/arviz/data/io_emcee.py b/arviz/data/io_emcee.py index c0a516fd39..e66a06fc50 100644 --- a/arviz/data/io_emcee.py +++ b/arviz/data/io_emcee.py @@ -191,7 +191,7 @@ def blobs_to_dict(self): if int(self.emcee.__version__[0]) >= 3: blobs = self.sampler.get_blobs() else: - blobs = np.array(self.sampler.blobs) + blobs = np.array(self.sampler.blobs, dtype=object) if (blobs is None or blobs.size == 0) and self.blob_names: raise ValueError("No blobs in sampler, blob_names must be None") if len(blobs.shape) == 2: