I could be wrong but it seems to me that you are not calling create_grids when you initialize the model, you’d need each layer having the self.gridsize defined.
Is the create grids defined inside each layer?