Skip to content

Commit

Permalink
add qualitycode warning in write_dia (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer authored Sep 4, 2024
1 parent defdf21 commit 75e63f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hatyan/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 75e63f8

Please sign in to comment.