Skip to content

Commit 2e69fa5

Browse files
committed
removed 2018 main macros
1 parent 07920bd commit 2e69fa5

16 files changed

+187
-3228
lines changed

RoyalSociety2018/Worm.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
//
88

99
#include "Worm.h"
10+
#include "../argUtils.h"
1011

1112
#define HEADSR
1213
#define VNCSR
1314

15+
extern SuppliedArgs2018 supArgs1;
16+
1417
int nn(int neuronNumber, int unitNumber)
1518
{
1619
return neuronNumber+((unitNumber-1)*N_neuronsperunit);
@@ -170,6 +173,8 @@ Worm::Worm(TVector<double> &v,double output)
170173

171174
void Worm::InitializeState(RandomState &rs)
172175
{
176+
supArgs1.speedoutput;
177+
173178
t = 0.0;
174179
n.RandomizeCircuitState(-0.5, 0.5, rs);
175180
h.RandomizeCircuitState(-0.5, 0.5, rs);

RoyalSociety2018/act.dat

-501
This file was deleted.

RoyalSociety2018/best.gen.dat

-1
This file was deleted.

RoyalSociety2018/body.dat

-501
This file was deleted.

RoyalSociety2018/curv.dat

-2,002
This file was deleted.

RoyalSociety2018/fitness.dat

-101
This file was deleted.

RoyalSociety2018/load_data.py

+15-13
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,29 @@
66
import numpy as np
77
from matplotlib import pyplot as plt
88
import sys
9-
sys.path.append('..')
9+
10+
sys.path.append("..")
1011

1112
# import random
1213
import helper_funcs as hf
13-
hf.dir_name = './'
14+
15+
hf.dir_name = "./"
16+
1417

1518
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
2427
N_hneurons = 4
2528
N_vneurons = 36
26-
N_muscles = 24*2
29+
N_muscles = 24 * 2
2730

28-
#N_neurons = N_neuronsperunit * N_units
31+
# N_neurons = N_neuronsperunit * N_units
2932

3033
fig, axs = plt.subplots(5, 2, figsize=(16, 8))
3134

@@ -79,7 +82,6 @@ def reload_single_run(show_plot=True, verbose=False):
7982
axs[2, 1].imshow(neu, aspect="auto", interpolation="nearest")
8083
axs[2, 1].xaxis.set_ticklabels([])
8184

82-
8385
offset += N_vneurons
8486
axs[3, 0].set_title("Muscles", fontsize=title_font_size)
8587
axs[3, 1].set_title("Muscles", fontsize=title_font_size)

0 commit comments

Comments
 (0)