Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit 50150c4

Browse files
author
Antonio Ulloa
committed
Got rid of unnecessary Python "print' commands in netgen.py
1 parent aa613ce commit 50150c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+5903
-5895
lines changed

simulation/netgen.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
# This file (netgen.py) was created on May 20 2016.
3737
#
3838
#
39-
# Author: Antonio Ulloa. Last updated by Antonio Ulloa on May 21 2016
39+
# Author: Antonio Ulloa. Last updated by Antonio Ulloa on May 24 2016
4040
#
4141
# Based on computer code originally developed by Malle Tagamets and
4242
# Barry Horwitz (Tagamets and Horwitz, 1998)
@@ -46,6 +46,16 @@
4646
#
4747
# Reads description of connecton weights among two simulated brain regions
4848
# and generates all the connecton weights between those regions.
49+
# The input, a weight file with extension "w", is given as argument when script
50+
# is executed.
51+
# The ouput is a file of the same name as the input file but with extension
52+
# "ws".
53+
# Only one weight file is processed at a time. If need to process all weight
54+
# files in a directory, you might want to use the following bash script on a
55+
# Unix or Linux terminal:
56+
# for file in *.ws ;
57+
# do python netgen.py $file ;
58+
# done
4959

5060
import sys
5161

@@ -102,8 +112,6 @@
102112
s = float(s[1:])
103113
scale.append(s*2)
104114

105-
print '[Inset, OutSet, ix, iy, ox, oy, fx, fy, seed, pctzero] = ', InSet, OutSet, ix, iy, ox, oy, fx, fy, seed, pctzero
106-
107115
# convert numeric strings to int prior to making operations with them
108116
ix = int(ix)
109117
iy = int(iy)

visual_model/subject_netgettest/attsefd2.w

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Tue May 24 15:35:54 2016
1+
% Tue May 24 15:52:20 2016
22

33
% Input Layer: (1, 1)
44
% Output Layer: (9, 9)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
% Tue May 24 15:35:54 2016
1+
% Tue May 24 15:52:20 2016
22

33
% Input Layer: (1, 1)
44
% Output Layer: (1, 1)
55
% Fanout Size: (1, 1)
66

77
Connect(attv, atts) {
88
From: (1, 1) {
9-
([ 1, 1] -0.024987)
9+
([ 1, 1] -0.016575)
1010
}
1111
}

visual_model/subject_netgettest/efd1efd1.w

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Tue May 24 15:35:54 2016
1+
% Tue May 24 15:52:20 2016
22

33
% Input Layer: (9, 9)
44
% Output Layer: (9, 9)

visual_model/subject_netgettest/efd1efd2.w

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Tue May 24 15:35:54 2016
1+
% Tue May 24 15:52:20 2016
22

33
% Input Layer: (9, 9)
44
% Output Layer: (9, 9)

visual_model/subject_netgettest/efd1exfr.w

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Tue May 24 15:35:54 2016
1+
% Tue May 24 15:52:20 2016
22

33
% Input Layer: (9, 9)
44
% Output Layer: (9, 9)

visual_model/subject_netgettest/efd1ifd1.w

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Tue May 24 15:35:54 2016
1+
% Tue May 24 15:52:20 2016
22

33
% Input Layer: (9, 9)
44
% Output Layer: (9, 9)

visual_model/subject_netgettest/efd1infs.w

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% Tue May 24 15:35:54 2016
1+
% Tue May 24 15:52:20 2016
22

33
% Input Layer: (9, 9)
44
% Output Layer: (9, 9)

0 commit comments

Comments
 (0)