Skip to content

Releases: RatInABox-Lab/RatInABox

v1.15.2

17 Dec 15:29
c95ef18
Compare
Choose a tag to compare

@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

New Contributors

Full Changelog: v1.15.1...v1.15.2

v1.15.1

01 Nov 17:57
Compare
Choose a tag to compare

Just cleans up some API stuff for the SubAgent class introduced in version v1.15.0

v1.15.0

01 Nov 13:18
Compare
Choose a tag to compare

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. SubAgents 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 of LeadAgent
  • ThetaSequenceAgent theta sweeps around the LeadAgents position
  • ReplayAgent 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

19 Aug 08:30
Compare
Choose a tag to compare

Minor interpolation bug fix as pointed out by #114. Also changed save_to_history() from using list(array) to array.tolist()

v1.14.0

16 Jul 16:38
Compare
Choose a tag to compare

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

21 Jun 13:50
Compare
Choose a tag to compare

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 the rectified_cosines models.

grid_geometry

  • 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.

gridcells_default

  • 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

28 Mar 11:37
Compare
Choose a tag to compare

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

14 Mar 12:30
Compare
Choose a tag to compare

Teeny tiny bug fixes....

Full Changelog: v1.12.3...v1.12.5

v1.12.3

13 Mar 12:40
Compare
Choose a tag to compare

Bug fix to maintain compatibility with python<=3.8.

We had been using list[str] (works in python>=3.9 only) and so have reverted back to from typing import List then List[str]. This fixes issue #105

v1.12.2

12 Mar 13:58
Compare
Choose a tag to compare

Bug fixes and very minor changes from 1.12.1