From 90ec0a2f00c8572a8d3d9ff5f038382a1d42e516 Mon Sep 17 00:00:00 2001 From: Craig D Warner Date: Tue, 26 Sep 2023 13:38:02 -0700 Subject: [PATCH] Unit test failed again complaining nz is None, which makes no sense as it should be 15 as a default arg now but adding a line if nz is None, nz = 15 solves issue. --- py/redrock/fitz.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/redrock/fitz.py b/py/redrock/fitz.py index 7dfe645f..e868bd7a 100644 --- a/py/redrock/fitz.py +++ b/py/redrock/fitz.py @@ -167,6 +167,8 @@ def fitz(zchi2, redshifts, target, template, nminima=3, archetype=None, use_gpu= results = list() #Moved default nz to arg list + if (nz is None): + nz = 15 for imin in find_minima(zchi2): if len(results) == nminima: