Skip to content

Commit

Permalink
Fix overlap check for Box now that it is considered an analytic spectrum
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Sep 6, 2016
1 parent 13f8dcb commit a1a3dcf
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 a1a3dcf

Please sign in to comment.