diff --git a/package/MDAnalysis/coordinates/chain.py b/package/MDAnalysis/coordinates/chain.py index 0c09a596d95..35dc72dbac5 100644 --- a/package/MDAnalysis/coordinates/chain.py +++ b/package/MDAnalysis/coordinates/chain.py @@ -387,8 +387,16 @@ def _format_hint(thing): .. versionadded:: 1.0.0 """ + has_zarr = False + try: + import zarr + has_zarr = True + except ImportError: + pass + return (not isinstance(thing, np.ndarray) and util.iterable(thing) and + (not has_zarr or not isinstance(thing, zarr.Group)) and not util.isstream(thing)) def _get_local_frame(self, k) -> Tuple[int, int]: