We would like to have simple attribute access on these curves, with the option of validation (all need to be proper numpy arrays, with the same length and so on)
In essence, we make these attributes semi-private, by prefixing an underscore
With this, we can have both: easy attribute access, without breaking compatibliy to old code, like in the tests:
aif = model.aif
model.aif = newaif
and can perform validation (which is not done yet):
We would like to have simple attribute access on these curves, with the option of validation (all need to be proper numpy arrays, with the same length and so on)
this looks much like a case for a property:
In essence, we make these attributes semi-private, by prefixing an underscore With this, we can have both: easy attribute access, without breaking compatibliy to old code, like in the tests:
and can perform validation (which is not done yet):
all by means of a simple
or something along this line