Skip to content

Commit

Permalink
Merge pull request #40 from hbahk/bugfix-pivot
Browse files Browse the repository at this point in the history
Fix calculation of pivot wavelength in FilterDefinition class
  • Loading branch information
gbrammer authored Jun 26, 2024
2 parents 8609c96 + 3657de8 commit 42cdf07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eazy/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 42cdf07

Please sign in to comment.