berenslab / RFEst

A Python 3 toolbox for neural receptive field estimation using splines and Gaussian priors.
https://arxiv.org/abs/2108.07537
GNU General Public License v3.0
24 stars 3 forks source link

Define all object attributes in __init__? #14

Closed jonathanoesterle closed 2 years ago

jonathanoesterle commented 2 years ago

The code would be easier to maintain if all object attributes would be defined in def __init__(self, ...). The hasattr(object, attr) would than have to be replaced with self.attr is None.