Skip to content

Commit

Permalink
bug fix to handle edge case gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrin committed Dec 18, 2024
1 parent cb6acbf commit 3a7ae40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stpsf/stpsf_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,10 @@ def _get_pupil_mask_alignment(self, lookup_key=None):
Pupil shifts, expressed in meters. And rotation in degrees.
"""
if not self.pupil_mask:
# if there is no pupil stop mask, these have no effect, so no need to do anything more to find values
return 0, 0, None

if not lookup_key:
lookup_key = self.name + '_' + self.pupil_mask

Expand Down

0 comments on commit 3a7ae40

Please sign in to comment.