Skip to content

Commit

Permalink
Merge pull request #191 from MartinMohrmann/update-quenching-report
Browse files Browse the repository at this point in the history
repair quenching report for new numpy versions
  • Loading branch information
MartinMohrmann authored Jul 20, 2023
2 parents 029a09f + 2a8448a commit 165055f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion glidertools/optics.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ def quenching_report(

from . import plot

# restrict all input arrays to depth < 183 m
y = array(depth)
i = y < 183
y = y[i]
Expand All @@ -815,8 +816,10 @@ def quenching_report(
fig, ax = subplots(3, 1, figsize=[10, 11], dpi=90)
title = "Quenching correction with Thomalla et al. (2017)"

# set robust plotting limits for corrected fluorescence and (0,1)
# limits for boolean quenching layer mask
bmin, bmax = nanpercentile(z[1], [2, 98])
smin, smax = nanpercentile(z[2], [2, 98])
smin, smax = (0, 1)
props = dict(cmap=cm.YlGnBu_r)
props.update(pcolor_kwargs)

Expand Down

0 comments on commit 165055f

Please sign in to comment.