quince-science / KPI

Data quality reports for data processed in QuinCe
MIT License
0 stars 2 forks source link

Avoid 'nan' as key in color dictionaries #22

Open cla023 opened 4 years ago

cla023 commented 4 years ago

All functions creating figures which somehow shows QC flags relies on a declared variable 'color dictionary' to set the colors representing each flag. As of now, a missing QC flag are sometimes also assigned a color. In these cases, the key 'nan' is used inside the color dictionary. Find a way to avoid using 'nan' as key since 'nan's are treated in a special way by python and may cause unexpected errors in the future.