Skip to content

Commit 0bd970e

Browse files
committed
Improve logging
1 parent bf75791 commit 0bd970e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mwrpy/level2/lwp_offset.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Module for LWP offset correction."""
22

3+
import logging
34
from itertools import groupby
45

56
import numpy as np
@@ -108,6 +109,7 @@ def correct_lwp_offset(
108109
> 12 * 3600
109110
)
110111
):
112+
logging.info("Applying LWP offset from previous day.")
111113
lwp_offset.loc[lwp_offset.index[0], "Lwp"] = offset_xd[0]
112114
if (
113115
(offset_xd[1] is not None)
@@ -118,6 +120,7 @@ def correct_lwp_offset(
118120
> 12 * 3600
119121
)
120122
):
123+
logging.info("Applying LWP offset from next day.")
121124
lwp_offset.loc[lwp_offset.index[-1], "Lwp"] = offset_xd[1]
122125
if (np.isnan(lwp_offset.values).all()) and any(offset_xd):
123126
lwp_offset.iloc[0] = np.nanmean(np.array(offset_xd).astype(float))

0 commit comments

Comments
 (0)