Skip to content

Commit

Permalink
Fix runastrodriz errors (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
stsci-hack committed Jul 28, 2020
1 parent e04a782 commit c972c2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drizzlepac/align.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def perform_align(input_list, archive=False, clobber=False, debug=False, update_
delta_dt = (current_dt - starting_dt).total_seconds()
log.info('Processing time of [STEP 5]: {} sec'.format(delta_dt))
alignment_table.close()
return (alignment_table.filtered_table)
return alignment_table
else:
log.info("{} Cross matching and "
"fitting {}".format("-" * 20, "-" * 47))
Expand Down
3 changes: 2 additions & 1 deletion drizzlepac/runastrodriz.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ def process(inFile, force=False, newpath=None, num_cores=None, inmemory=True,
_trlmsg += 'A priori alignment FAILED! No a priori astrometry correction applied.\n'
_updateTrlFile(_trlfile, _trlmsg)

aposteriori_table=None
if align_to_gaia:
_trlmsg = _timestamp('Starting a posteriori alignment')
_trlmsg += __trlmarker__
Expand Down Expand Up @@ -676,7 +677,7 @@ def process(inFile, force=False, newpath=None, num_cores=None, inmemory=True,
# interpret envvar variable, if specified
qa_switch = _get_envvar_switch(envvar_qa_stats_name)

if qa_switch:
if qa_switch and dcorr == 'PERFORM':

# Generate quality statistics for astrometry if specified
calfiles = _calfiles_flc if _calfiles_flc else _calfiles
Expand Down

0 comments on commit c972c2f

Please sign in to comment.