Skip to content

Commit

Permalink
Merge branch 'opus_2015_3dms'
Browse files Browse the repository at this point in the history
  • Loading branch information
stsci-hack committed Mar 16, 2016
2 parents e25dc99 + 41e4e3d commit 5190d44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/drizzlepac/processInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def processFilenames(input=None,output=None,infilesOnly=False):
asnhdr = fits.getheader(input)
# Only perform duplication check if not already completed...
dupcheck = asnhdr.get('DUPCHECK',default="PERFORM") == "PERFORM"

#filelist = [fileutil.buildRootname(fname) for fname in oldasndict['order']]
filelist = buildASNList(oldasndict['order'],input,check_for_duplicates=dupcheck)

Expand Down Expand Up @@ -552,7 +552,7 @@ def process_input(input, output=None, ivmlist=None, updatewcs=True,
elif drz_extn[:4] not in output.lower():
output = fileutil.buildNewRootname(output, extn=drz_extn)


log.info('Setting up output name: %s' % output)

return asndict, ivmlist, output
Expand Down Expand Up @@ -672,15 +672,15 @@ def buildFileListOrig(input, output=None, ivmlist=None,

# Check format of FITS files - convert Waiver/GEIS to MEF if necessary
filelist, ivmlist = check_files.checkFITSFormat(filelist, ivmlist)

# check for non-polynomial distortion correction
filelist = checkDGEOFile(filelist)

# run all WCS updating
updated_input = _process_input_wcs(filelist, wcskey, updatewcs)

newfilelist, ivmlist = check_files.checkFiles(updated_input, ivmlist)

if len(ivmlist) > 0:
ivmlist, filelist = list(zip(*ivmlist))
else:
Expand Down Expand Up @@ -753,7 +753,7 @@ def changeSuffixinASN(asnfile, suffix):
new_dtype.append((d.descr[0][0],d.descr[0][1].replace(msize,'{}{}'.format(mtype,new_size))))
new_dtype.append(d.descr[1])
new_dtype.append(d.descr[2])

# Assign newly created, reformatted array to extension
newasn = np.array(newdata,dtype=new_dtype)
fasn[1].data = newasn
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
setup(
setup_requires=['d2to1>=0.2.3', 'stsci.distutils>=0.3.2'],
d2to1=True,
use_2to3=True,
use_2to3=False,
zip_safe=False
)

0 comments on commit 5190d44

Please sign in to comment.