kaufmanno / GSDMA

GNU General Public License v3.0
0 stars 1 forks source link

write a function that generates contamination levels lexicon for each pollutant #115

Closed YanickNdepo closed 3 years ago

YanickNdepo commented 3 years ago

the function will use the contamination levels lexicon defined in utils/lexicon/lexicon_memoris.py and will just change the component attribute by pollutant attribute (e.g : Benzene, Toluene)

YanickNdepo commented 3 years ago

I have created the function 'legend_from_attributes()' in utils/utils.py for this task. It allows to get a legend dict from attributes list (for the pollutant) or tuple of attribute and associated legend (see docstring).