Skip to content

Commit

Permalink
Merge pull request #184 from MartinMohrmann/fix_quenching_correction
Browse files Browse the repository at this point in the history
fix quenching correction
  • Loading branch information
MartinMohrmann authored Jul 20, 2023
2 parents 165055f + 25dcb4f commit 4d27de2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glidertools/optics.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def par_dark_count(par, depth, time, depth_percentile=90):
if ma.sum(xi) < 1:
warnings.warn(
"There are no reliable night time measurements. This dark count correction cannot be "
"cannot be trusted",
"trusted",
UserWarning,
)

Expand Down Expand Up @@ -697,7 +697,7 @@ def grad_min(depth, fluor_diff, surface_layer=5):
df = pd.DataFrame(np.c_[flr, bbp], columns=["flr", "bbp"])
# get the binned averages for each batch and select the night
night_ave = df.groupby([day, batch, np.around(depth)]).mean()
night_ave = night_ave.dropna().loc[False]
night_ave = night_ave.dropna().loc[False, :, :]
# A second group where only batches are grouped
grp_batch = df.groupby(batch)

Expand Down

0 comments on commit 4d27de2

Please sign in to comment.