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.
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.