From 269889f2c512ab400ad5d483f5cc2b6aa5c40057 Mon Sep 17 00:00:00 2001 From: shimwell Date: Tue, 10 Feb 2026 20:25:58 +0100 Subject: [PATCH] match to fullmatch like openmc --- src/endf/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endf/data.py b/src/endf/data.py index 9af4204..0fea149 100644 --- a/src/endf/data.py +++ b/src/endf/data.py @@ -119,7 +119,7 @@ def zam(name: str) -> Tuple[int, int, int]: """ try: - symbol, A, state = _GNDS_NAME_RE.match(name).groups() + symbol, A, state = _GNDS_NAME_RE.fullmatch(name).groups() except AttributeError: raise ValueError(f"'{name}' does not appear to be a nuclide name in " "GNDS format")