RatInABox-Lab / RatInABox

A python package for modelling locomotion in complex environments and spatially/velocity selective cell activity.
MIT License
172 stars 31 forks source link

Moved OVC initialization steps to methods #65

Closed colleenjg closed 1 year ago

colleenjg commented 1 year ago

Moved initialization steps in ObjectVectorCells to separate methods, to allow these to be overridden more easily by child classes.

This can be useful for creating an ObjectVectorCells child class where the assignments of objects to cells is not uniformly random. Like this, a minimalist child class can be written where just a method or two are overridden, but the original init can be kept.

TomGeorge1234 commented 1 year ago

Thanks. Stuff like this should be done more broadly tbh, an upgrade (as you pointed out) for v2.