Source code for the model in Monaco JD, Abbott LF. (2011). "Modular Realignment of Entorhinal Grid Cell Activity as a Basis for Hippocampal Remapping" J Neurosci 31(25): 9414-9425. doi:10.1523/JNEUROSCI.1433-11.2011