Skip to content

Commit

Permalink
Use correct empty list for badAmps.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Apr 18, 2023
1 parent 1ae041b commit ea5028a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/cp/pipe/ptc/cpSolvePtcTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ def errFunc(p, x, y):
if not len(dataset.ptcFitType) == 0:
dataset.ptcFitType = ptcFitType
if len(dataset.badAmps) == 0:
dataset.badAmps = np.repeat(np.nan, len(list(dataset.rawExpTimes.values())[0]))
dataset.badAmps = []

return dataset

Expand Down

0 comments on commit ea5028a

Please sign in to comment.