Skip to content

Commit

Permalink
fixed two bugs in genred for inst=other
Browse files Browse the repository at this point in the history
just didn't work
  • Loading branch information
trmrsh committed Jun 9, 2021
1 parent b9c5039 commit 470875a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hipercam/scripts/genred.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ def genred(args=None):
cl.register("nonlin", Cline.LOCAL, Cline.PROMPT)
cl.register("sat", Cline.LOCAL, Cline.PROMPT)
cl.register("scale", Cline.LOCAL, Cline.PROMPT)
cl.register("readout", Cline.LOCAL, Cline.PROMPT)
cl.register("gain", Cline.LOCAL, Cline.PROMPT)
cl.register("template", Cline.LOCAL, Cline.PROMPT)

# get inputs
Expand Down Expand Up @@ -346,8 +348,9 @@ def genred(args=None):
"levels to indicate saturation, 1 per CCD",
nccd*(62000.,)
)

warn_levels = ""
for n, (nonlin,sat) in zip(nonlins,sats):
for n, (nonlin,sat) in enumerate(zip(nonlins,sats)):
warn_levels += \
f"warn = {n+1} {nonlin} {sat}\n"
maxcpu = nccd
Expand Down

0 comments on commit 470875a

Please sign in to comment.