Skip to content

Commit

Permalink
Add animated gif
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Jun 30, 2023
1 parent 9b97983 commit e3547c9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![C/C++ CI](https://github.com/OpenSourceBrain/CelegansNeuromechanicalGaitModulation/actions/workflows/build.yml/badge.svg)](https://github.com/OpenSourceBrain/CelegansNeuromechanicalGaitModulation/actions/workflows/build.yml)

<img width="400" alt="MatlabView" src="images/MatlabView.png"/>&nbsp;&nbsp;&nbsp;<img width="400" alt="PythonView" src="images/PythonView.png"/>
<img width="400" alt="MatlabView" src="images/MatlabView.png"/>&nbsp;&nbsp;&nbsp;<img width="400" alt="PythonView" src="images/Replay.gif"/>


A model of <i>C. elegans</i> locomotion described in Boyle, Berri and Cohen, [Gait modulation in C. elegans: an integrated neuromechanical model](http://www.frontiersin.org/Computational_Neuroscience/10.3389/fncom.2012.00010/abstract), Front. Comput. Neurosci., 2012.
Expand Down
1 change: 1 addition & 0 deletions WormSim/Model/WormView.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
plt.legend()"""

fig, ax = plt.subplots()
plt.get_current_fig_manager().set_window_title("2D WormSim replay")
ax.set_aspect("equal")

usingObjects = os.path.isfile("objects.csv")
Expand Down
2 changes: 1 addition & 1 deletion WormSim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ If you don't have access to Matlab, try [Octave](https://www.gnu.org/software/oc
python WormView.py
```

<img width="500" alt="PythonView" src="../images/PythonView.png"/>
<img width="500" alt="PythonView" src="../images/Replay.gif"/>

**Note:** to get the objects shown in the visualisations above, change the following values in [worm.cc](https://github.com/OpenSourceBrain/CelegansNeuromechanicalGaitModulation/blob/master/WormSim/Model/worm.cc), then remake the main program, and rerun:

Expand Down
Binary file added images/Replay.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e3547c9

Please sign in to comment.