You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`RatInABox` (see [paper](https://elifesciences.org/articles/85274)) is a toolkit for generating synthetic behaviour and neural data for spatially and/or velocity selective cell types in complex continuous environments.
Copy file name to clipboardExpand all lines: ratinabox/Agent.py
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -843,6 +843,7 @@ def animate_trajectory(
843
843
t_end=None,
844
844
fps=15,
845
845
speed_up=5, #by default the animation is 5x faster than real time
846
+
progress_bar=False,
846
847
autosave=None,
847
848
**kwargs
848
849
):
@@ -852,6 +853,7 @@ def animate_trajectory(
852
853
t_end (_type_, optional): _description_. Defaults to None.
853
854
fps: frames per second of end video
854
855
speed_up: #times real speed animation should come out at
856
+
progress_bar (bool): if True, a progress bar will be shown as the animation is created. Defaults to False.
855
857
autosave (bool): whether to automatical try and save this. Defaults to None in which case looks for global constant ratinabox.autosave_plots
856
858
kwargs: passed to trajectory plotting function (chuck anything you wish in here). A particularly useful kwarg is 'additional_plot_func': any function which takes a fig, ax and t as input. The animation wll be passed through this each time after plotting the trajectory, use it to modify your animations however you like
Copy file name to clipboardExpand all lines: ratinabox/Neurons.py
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -698,6 +698,7 @@ def animate_rate_timeseries(
698
698
chosen_neurons="all",
699
699
fps=15,
700
700
speed_up=1,
701
+
progress_bar=False,
701
702
autosave=None,
702
703
**kwargs,
703
704
):
@@ -710,8 +711,10 @@ def animate_rate_timeseries(
710
711
Args:
711
712
• t_end (_type_, optional): _description_. Defaults to None.
712
713
• chosen_neurons: Which neurons to plot. string "10" or 10 will plot ten of them, "all" will plot all of them, "12rand" will plot 12 random ones. A list like [1,4,5] will plot cells indexed 1, 4 and 5. Defaults to "all".
714
+
• fps: frames per second of end video. Defaults to 15.
715
+
• speed_up: #times real speed animation should come out at. Defaults to 1.
716
+
• progress_bar: if True, a progress bar will be shown as the animation is created. Default to False.
713
717
714
-
• speed_up: #times real speed animation should come out at.
0 commit comments