Skip to content

Commit

Permalink
pgp.py -- bug fix with percentile problem
Browse files Browse the repository at this point in the history
had same issue with matplotlib version. This caused spurious complaints about no pixels when computing percentiles
  • Loading branch information
trmrsh committed May 9, 2021
1 parent dd74c75 commit 9806d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hipercam/pgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def pCcd(
xlo = min(xlo, xhi)
xhi = max(xlo, xhi)
if ylo is not None and yhi is not None:
xlo = min(ylo, yhi)
xhi = max(ylo, yhi)
ylo = min(ylo, yhi)
yhi = max(ylo, yhi)
vmin, vmax = ccd.percentile(
(plo, phi), xlo, xhi, ylo, yhi
)
Expand Down

0 comments on commit 9806d89

Please sign in to comment.