Skip to content

Commit

Permalink
Fixed a few Python 2-style print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed May 26, 2016
1 parent 3a9fe20 commit b3e8514
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/nineml_neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
'inhibitory_vrev': -70.0,
}

print celltype_cls.default_parameters
print(celltype_cls.default_parameters)

cells = sim.Population(1, celltype_cls, parameters)
cells.initialize(iaf_V=parameters['iaf_vrest'])
Expand Down Expand Up @@ -133,4 +133,4 @@
title=__file__
).save(options.plot_figure)

print data.spiketrains
print(data.spiketrains)
2 changes: 1 addition & 1 deletion pyNN/nineml/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,5 +325,5 @@ def describe(self):

sim.setup(filename="%s_export.xml" % os.path.splitext(nineml_file)[0])
network = Network(sim, nineml_file)
print network.describe()
print(network.describe())
sim.end()
2 changes: 1 addition & 1 deletion test/hardware/unittests/launch_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
if not d1.find("test"):
function_name = module.__name__ + '.' + obj.__name__ + '.' + d1
bash_command = "python -m unittest " + function_name
print bash_command
print(bash_command)
os.system(bash_command)
4 changes: 2 additions & 2 deletions test/system/test_hardware_brainscales.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def test_SpikeSourceArray(self):
p2.record('v')
sim.run(100.0)
weights = nan_to_num(con.get('weight', format="array"))
print weights
print(weights)
data = p2.get_data().segments[0]
vm = data.filter(name="v")[0]
print vm
print(vm)
Figure(
Panel(weights, data_labels=["ext->cell"], line_properties=[{'xticks': True, 'yticks': True, 'cmap': 'Greys'}]),
Panel(vm, ylabel="Membrane potential (mV)", data_labels=["excitatory", "excitatory"], line_properties=[{'xticks': True, 'yticks': True}]),
Expand Down

0 comments on commit b3e8514

Please sign in to comment.