Skip to content

Commit

Permalink
improved adjustment logging
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteVandecrux committed Dec 19, 2023
1 parent c19b7c1 commit 5431d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pypromice/qc/github_data_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def flagNAN(ds_in,

for v in varlist:
if v in list(ds.keys()):
logger.info(f'---> flagging {t0} {t1} {v}')
logger.info(f'---> flagging {v} between {t0} and {t1}')
ds[v] = ds[v].where((ds['time'] < t0) | (ds['time'] > t1))
else:
logger.info(f'---> could not flag {v} not in dataset')
Expand Down Expand Up @@ -227,7 +227,7 @@ def adjustData(ds,
logger.info("Time range does not intersect with dataset")
continue

logger.info(f'---> {t0} {t1} {var} {func} {val}')
logger.info(f'---> adjusting {var} between {t0} and {t1} ({func} {val})')

if func == "add":
ds_out[var].loc[index_slice] = ds_out[var].loc[index_slice].values + val
Expand Down

0 comments on commit 5431d19

Please sign in to comment.