diff --git a/yt/frontends/gizmo/data_structures.py b/yt/frontends/gizmo/data_structures.py index 9b2d3e3e2e..4aeeac96e0 100644 --- a/yt/frontends/gizmo/data_structures.py +++ b/yt/frontends/gizmo/data_structures.py @@ -44,11 +44,13 @@ def _is_valid(cls, filename, *args, **kwargs): ) # From Apr 2021, 7f1f06f, public gizmo includes a header variable # GIZMO_version, which is set to the year of the most recent commit - # We should prefer this to checking the metallicity, which might + # We should prefer this to checking the metallicity, which might # not exist if "GIZMO_version" not in fh["/Header"].attrs: dmetal = "/PartType0/Metallicity" - if dmetal not in fh or (fh[dmetal].ndim > 1 and fh[dmetal].shape[1] < 11): + if dmetal not in fh or ( + fh[dmetal].ndim > 1 and fh[dmetal].shape[1] < 11 + ): valid = False fh.close() except Exception: