Open
Description
Need to discuss how we handle this:
batchglm/batchglm/models/base_glm/model.py
Lines 66 to 82 in 6048230
There are basically three options in my opinion:
- Remove
InputDataGLM
entirely: We only use it as a container now that does some type checks in the beginning which we could do statically inutils
anyway. - Keep
InputDataGLM
and reference the attributes in the model properties, i.e.model.input_data.<attribute>
when callingmodel.attribute
- override
model.__getattr__
like so:def __getattr__(self, attr: str): return self.input_data.__getattribute__(attr)
I'm in favour of 2 but as a way in between to keep this support, maybe 3 would be an elegant solution for now.
Please advise @ilan-gold @davidsebfischer