Releases: RatInABox-Lab/RatInABox
v1.15.2
@niksirbi fixed a bug causing the documentation website to fail. This has been patched.
@colleenjg changed how figures are saved so the folder does YYY_MM_DD
@colleenjg changed how BVCs are scaled with their max_fr
What's Changed
- Make save folders year first by default. by @colleenjg in #117
- Changed how firingrate is scaled to maximum for BVCs. by @colleenjg in #118
- Fix links in documentation build by @niksirbi in #119
New Contributors
Full Changelog: v1.15.1...v1.15.2
v1.15.1
Just cleans up some API stuff for the SubAgent class introduced in version v1.15.0
v1.15.0
SubAgent
contrib and minor QOL upgrades
This release adds save_fig()
kwargs which aer passed directly to matplotlib.save_figure
function so you can modify how figures are saved.
Also adds SubAgent
class in the controls. SubAgent
s take as input, and are "subservient" to, another Agent
(the LeadAgent). The key thing idea is that the SubAgent
may have an update() function which relies heavily on the state of the LeadAgent. Examples included are:
DumbAgent
a noisy version ofLeadAgent
ThetaSequenceAgent
theta sweeps around theLeadAgent
s positionReplayAgent
occasional short replay events
The API is as follows
Env = Environment()
Ag = Agent(Env) # the lead agent
DumbAg = DumbAgent(LeadAgent=Ag, params = {'drift_distance':0.1})
while Ag.t < 60:
Ag.update()
DumbAg.update()
DumbAg.animate_trajectory()
then returns something like:
trajectory_1317.mp4
Full Changelog: v1.14.1...v1.15.0
v1.14.1
v1.14.0
numpy-2.0.0
compatibility
No substantial changes, I just fixed a few bugs to make compatible with numpy>=2.0.0
v1.13.0
Grids cell
- Grid cells work in 1D
- Grid cells have a
width_ratio
parameter which sets the ration of the width of the receptive field to the grid scale. It mist be between 0 (very sharp grid fields) and 1 (very diffuse grid fields) and only works for therectified_cosines
models.
- Minor api change (warning thrown, will not break)
three_shifted_cosines
-->shifted_cosines
- Default grid cells have been changed to 30 grid cells in three increasingly slightly rotated modules.
- Grid cell documentation on the readme has been improved
Plotting:
- Plotting the rate map of a single neuron in 1D can now be optimised using
optimise_plot_for_single_neuron
(without this it just does a mountain plot with a single line, which isn't ideal.
numpy
pinned to versions <2.0.0
This will be unpinned as a soon as important associated packages (matplotlib
, scipy
etc.) support 2.0.0.
v1.12.6
BVC scaling bug fix
Thanks @colleenjg for minor bug fix relating to BVC firing rate scaling (see PR #109 and issue #108)
v1.12.5
Teeny tiny bug fixes....
Full Changelog: v1.12.3...v1.12.5
v1.12.3
v1.12.2
Bug fixes and very minor changes from 1.12.1