From 75e63f86f57b12df4b3b936eb7c95475fc98d348 Mon Sep 17 00:00:00 2001 From: veenstrajelmer <60435591+veenstrajelmer@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:26:53 +0200 Subject: [PATCH] add qualitycode warning in write_dia (#345) --- hatyan/timeseries.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hatyan/timeseries.py b/hatyan/timeseries.py index 2d98d0d1..5cbb84aa 100644 --- a/hatyan/timeseries.py +++ b/hatyan/timeseries.py @@ -789,6 +789,9 @@ def write_dia(ts, filename, headerformat='dia'): if "status" in ts.columns: logger.warning("status column is ignored by hatyan.write_dia(), all " "status values in diafile will be 'Ongecontroleerd'") + if "qualitycode" in ts.columns: + logger.warning("qualitycode column is ignored by hatyan.write_dia(), all " + "qualitycode values in diafile will be 0") metadata_pd = get_metadata_pd(ts, headerformat=headerformat) if "HWLWcode" in ts.columns: