kaufmanno / GSDMA

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

Use correctly the link between Components and intervals in the database #134

Open YanickNdepo opened 2 years ago

YanickNdepo commented 2 years ago

the table created to implement link between components and intervals (many to many) must contains component value for a specific interval.

e.g: the interval 1 contains component 2 (toluene), and the value of this component in that interval is 110 mg/l. So the dict {value: 110, 'unit': 'mg/l'} will be the link table occurrence's value in the database.

YanickNdepo commented 2 years ago

actually, this has been achieved but the extra_data column in the database contains a dict such as : {'level': None, 'concentration': None, 'unit': None} when the component type is 'lithology'. isn't it better to set an empty dictionary if no data ?