From a1a3dcfe233df8719b4b8b181509dc32acfefe57 Mon Sep 17 00:00:00 2001 From: Pey Lian Lim Date: Tue, 6 Sep 2016 16:12:03 -0400 Subject: [PATCH] Fix overlap check for Box now that it is considered an analytic spectrum --- pysynphot/spectrum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysynphot/spectrum.py b/pysynphot/spectrum.py index 1b667396..d94a7c25 100644 --- a/pysynphot/spectrum.py +++ b/pysynphot/spectrum.py @@ -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)]