festim-dev / FESTIM

Coupled hydrogen/tritium transport and heat transfer modelling using FEniCS
https://festim.readthedocs.io/en/stable/
Apache License 2.0
78 stars 16 forks source link

Are objects time-dependent if value is None? #744

Open RemDelaporteMathurin opened 2 months ago

RemDelaporteMathurin commented 2 months ago
          Isn't this a bit dangerous? Say I check if it's time-dependent before assigning it a value by mistake, I may think it's not time-dpeendent but then it becomes time dependent if the value is say a function of time.

Should we raise an error instead?

_Originally posted by @RemDelaporteMathurin in https://github.com/festim-dev/FESTIM/pull/737#discussion_r1552241434_