kaufmanno / GSDMA

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

way to store pollution data #104

Open YanickNdepo opened 3 years ago

YanickNdepo commented 3 years ago

The idea is to store pollution data (pollutant and concentration) like a dictionary in striplog.interval with the field 'data'.

kaufmanno commented 3 years ago

Implies a work on the ORM. Potential difficulty is that we would wish the field to be a dictionary e.g. {'Benzene': {'value': 1.52, 'units': 'µg/l'}}

YanickNdepo commented 3 years ago

it's possible to store a dict in the striplog data field (example below): Interval(top=2, base=3, components=[samples[1]], data={'Benzene': {'value': 1.52, 'units': 'µg/l'}}),