From 045c5756ce8b077651a1ad66a24fd60267f25a66 Mon Sep 17 00:00:00 2001 From: Pete R Jemian Date: Wed, 13 Dec 2023 08:10:46 -0600 Subject: [PATCH] Update hkl/sample.py Co-authored-by: Padraic Shafer <76011594+padraic-shafer@users.noreply.github.com> --- hkl/sample.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hkl/sample.py b/hkl/sample.py index 88dc4916..90ac9947 100644 --- a/hkl/sample.py +++ b/hkl/sample.py @@ -382,6 +382,7 @@ def has_valid_position(pos): raise TypeError(f"All values must be numeric, received {pos!r}") return True elif type(pos).__class__.__name__.startswith("Pos"): + # This is (probably) a calc.Position namedtuple if False in [isinstance(v, (int, float)) for v in pos]: raise TypeError(f"All values must be numeric, received {pos!r}") return True