Skip to content

Commit

Permalink
Merge pull request #20 from pllim/fix-more-box-tests
Browse files Browse the repository at this point in the history
Fix overlap check for Box
  • Loading branch information
pllim committed Sep 6, 2016
2 parents 13f8dcb + a1a3dcf commit b93b04e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysynphot/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -2083,8 +2083,8 @@ def check_overlap(self, other):
Overlap status.
"""
if other.isAnalytic:
# then it's defined everywhere
if other.isAnalytic and not isinstance(other, Box):
# then it's defined everywhere, except for Box
return 'full'

swave = self.wave[N.where(self.throughput != 0)]
Expand Down

0 comments on commit b93b04e

Please sign in to comment.