From d967d83433360e65aa7cc2cb0228a67c7b21355a Mon Sep 17 00:00:00 2001 From: Michael Ryan Date: Fri, 14 Jul 2023 18:09:44 -0400 Subject: [PATCH] pre-commit changes --- yt/frontends/gizmo/data_structures.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: