Skip to content

Commit

Permalink
grab.py -- smallchange to bias exposure
Browse files Browse the repository at this point in the history
  • Loading branch information
trmrsh committed May 24, 2021
1 parent 5d0c519 commit 64f77f7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions hipercam/scripts/grab.py
Expand Up @@ -241,10 +241,8 @@ def grab(args=None):

# fringe file (if any)
fmap = cl.get_value(
"fmap",
"fringe map ['none' to ignore]",
cline.Fname("fmap", hcam.HCAM),
ignore="none",
"fmap", "fringe map ['none' to ignore]",
cline.Fname("fmap", hcam.HCAM), ignore="none",
)
if fmap is not None:
# read the fringe frame and prompt other parameters
Expand Down Expand Up @@ -320,6 +318,9 @@ def grab(args=None):
# First time through, need to manipulate calibration data
if bias is not None:
bias = bias.crop(mccd)
bexpose = bias.head.get("EXPTIME", 0.0)
else:
bexpose = 0.
if flat is not None:
flat = flat.crop(mccd)
if dark is not None:
Expand All @@ -331,9 +332,6 @@ def grab(args=None):
# now any time through, apply calibrations
if bias is not None:
mccd -= bias
bexpose = bias.head.get("EXPTIME", 0.0)
else:
bexpose = 0.

if dark is not None:
# subtract dark, CCD by CCD
Expand Down

0 comments on commit 64f77f7

Please sign in to comment.