Skip to content

Commit

Permalink
Fixed semantic errors in flux calibrate
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlb05 committed Sep 19, 2017
1 parent 554e963 commit 54ba4aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions nifty/pipeline/steps/nifsFluxCalibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def scaleBlackBody(rawFrame, log, over):
# A bug involving iraf.gemini() causes imarith to fail here. Use astropy unless you fixed it.
#iraf.imarith(operand1="3_BBody"+rawFrame, op="*", operand2=bbodyScaleFactor, result="5_scaledBBody"+rawFrame,title='',divzero=0.0,hparams='',pixtype='',calctype='',verbose='no',noact='no',mode='al')
operand1 = astropy.io.fits.open("3_BBody"+rawFrame+".fits")[0].data
operand2 = astropy.io.fits.open("3_BBody"+rawFrame+".fits")[0].data
operand2 = bbodyScaleFactor
multiplied = operand1 * operand2
hdu = astropy.io.fits.PrimaryHDU(multiplied)
hdu.writeto("5_scaledBBody"+rawFrame+".fits")
Expand All @@ -321,11 +321,10 @@ def scaleBlackBody(rawFrame, log, over):
# A bug involving iraf.gemini() causes imarith to fail here. Use astropy unless you fixed it.
#iraf.imarith(operand1="3_BBody"+rawFrame, op="*", operand2=bbodyScaleFactor, result="5_scaledBBody"+rawFrame,title='',divzero=0.0,hparams='',pixtype='',calctype='',verbose='no',noact='no',mode='al')
operand1 = astropy.io.fits.open("3_BBody"+rawFrame+".fits")[0].data
operand2 = astropy.io.fits.open("3_BBody"+rawFrame+".fits")[0].data
operand2 = bbodyScaleFactor
multiplied = operand1 * operand2
hdu = astropy.io.fits.PrimaryHDU(multiplied)
hdu.writeto("5_scaledBBody"+rawFrame+".fits")
logging.info("\nCreated a scaled blackbody, 5_scaledBBody{}.fits".format(rawFrame))
# We now have a scaled blackbody, scaledBlackBody.fits

def multiplyByBlackBody(rawFrame, log, over):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

setup(
name=NAME,
version="1.0b8",
version="1.0b9",
author='mbusserolle',
author_email='[email protected]',
description='The Gemini NIFS data reduction pipeline.',
Expand Down

0 comments on commit 54ba4aa

Please sign in to comment.