Skip to content

Commit

Permalink
move check too the top
Browse files Browse the repository at this point in the history
  • Loading branch information
mcara committed May 23, 2024
1 parent f536f24 commit e54557c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions jwst/tweakreg/tweakreg_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,24 +161,6 @@ def process(self, input):
else:
catdict[member.expname] = path.join(asn_dir, member.tweakreg_catalog)

if self.separation <= _SQRT2 * self.tolerance:
self.log.error(
"Parameter 'separation' must be larger than 'tolerance' by at "
"least a factor of sqrt(2) to avoid source confusion."
)
self.skip = True
self.log.warning("Skipping 'TweakRegStep' step.")
return images

if self.abs_separation <= _SQRT2 * self.abs_tolerance:
self.log.error(
"Parameter 'abs_separation' must be larger than 'abs_tolerance' "
"by at least a factor of sqrt(2) to avoid source confusion."
)
self.skip = True
self.log.warning("Skipping 'TweakRegStep' step.")
return images

if self.abs_refcat is not None and self.abs_refcat.strip():
align_to_abs_refcat = True
# Set expand_refcat to True to eliminate possibility of duplicate
Expand Down

0 comments on commit e54557c

Please sign in to comment.