diff --git a/eazy/filters.py b/eazy/filters.py index a4ad3026..39398175 100644 --- a/eazy/filters.py +++ b/eazy/filters.py @@ -184,8 +184,8 @@ def pivot(self): """ integrator = np.trapz - num = integrator(self.wave, self.wave*self.throughput) - den = integrator(self.wave, self.throughput/self.wave) + num = integrator(self.wave*self.throughput, self.wave) + den = integrator(self.throughput/self.wave, self.wave) pivot = np.sqrt(num/den) return pivot