|
6 | 6 | import numpy as np
|
7 | 7 | from matplotlib import pyplot as plt
|
8 | 8 | import sys
|
9 |
| -sys.path.append('..') |
| 9 | + |
| 10 | +sys.path.append("..") |
10 | 11 |
|
11 | 12 | # import random
|
12 | 13 | import helper_funcs as hf
|
13 |
| -hf.dir_name = './' |
| 14 | + |
| 15 | +hf.dir_name = "./" |
| 16 | + |
14 | 17 |
|
15 | 18 | def reload_single_run(show_plot=True, verbose=False):
|
16 |
| - #N_muscles_perside = 24 # Number of muscles alongside the body |
17 |
| - #N_muscles = N_muscles_perside * 2 |
18 |
| - #N_units = 10 # Number of neural units in VNC |
19 |
| - #N_neuronsperunit = 6 # Number of neurons in a VNC neural unit (6 neurons) |
20 |
| - #N_stretchrec_units = 10 # Number of stretch receptors |
21 |
| - #N_stretchrec = N_stretchrec_units * 4 # Number of stretch receptors |
22 |
| - |
23 |
| - N_stretchrec = 2 + 6*3 # number of streatch receptors |
| 19 | + # N_muscles_perside = 24 # Number of muscles alongside the body |
| 20 | + # N_muscles = N_muscles_perside * 2 |
| 21 | + # N_units = 10 # Number of neural units in VNC |
| 22 | + # N_neuronsperunit = 6 # Number of neurons in a VNC neural unit (6 neurons) |
| 23 | + # N_stretchrec_units = 10 # Number of stretch receptors |
| 24 | + # N_stretchrec = N_stretchrec_units * 4 # Number of stretch receptors |
| 25 | + |
| 26 | + N_stretchrec = 2 + 6 * 3 # number of streatch receptors |
24 | 27 | N_hneurons = 4
|
25 | 28 | N_vneurons = 36
|
26 |
| - N_muscles = 24*2 |
| 29 | + N_muscles = 24 * 2 |
27 | 30 |
|
28 |
| - #N_neurons = N_neuronsperunit * N_units |
| 31 | + # N_neurons = N_neuronsperunit * N_units |
29 | 32 |
|
30 | 33 | fig, axs = plt.subplots(5, 2, figsize=(16, 8))
|
31 | 34 |
|
@@ -79,7 +82,6 @@ def reload_single_run(show_plot=True, verbose=False):
|
79 | 82 | axs[2, 1].imshow(neu, aspect="auto", interpolation="nearest")
|
80 | 83 | axs[2, 1].xaxis.set_ticklabels([])
|
81 | 84 |
|
82 |
| - |
83 | 85 | offset += N_vneurons
|
84 | 86 | axs[3, 0].set_title("Muscles", fontsize=title_font_size)
|
85 | 87 | axs[3, 1].set_title("Muscles", fontsize=title_font_size)
|
|
0 commit comments