Skip to content

Commit

Permalink
Unit test failed again complaining nz is None, which makes no sense as
Browse files Browse the repository at this point in the history
it should be 15 as a default arg now but adding a line if nz is None, nz
= 15 solves issue.
  • Loading branch information
craigwarner-ufastro committed Sep 26, 2023
1 parent 6ece174 commit 90ec0a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/redrock/fitz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 90ec0a2

Please sign in to comment.