ISA-tools / isa-api

ISA tools API
https://isa-tools.org
Other
40 stars 37 forks source link

implement a guard in material.py #543

Open proccaserra opened 4 months ago

proccaserra commented 4 months ago

I'm curious about what we happen if we were to provide the characteristic_data["value"] has a not acceptable data type (list, tuples, set, object, ....). I think it would append an empty characteristic to the material. Thus, a guard could force a return statement in case of a not acceptable type.

line 92 in material.py