neuronsimulator / ringtest

Ring network model test to demonstrate the use of CoreNEURON
12 stars 6 forks source link

fix support for python3 #8

Closed schloegl closed 3 years ago

schloegl commented 6 years ago

The patch changes the syntax for support on python 3.
Because the days of python2 are counted [1], I ask you to consider this patch.

[1] https://www.python.org/dev/peps/pep-0373/

nrnhines commented 6 years ago

most of these changes to print generate exactly the same output. But a few do not. I generally prefer changing things like print a, b to print (str(a) + " " + str(b)) or else use a print ("%d %d", (a, b)) #if one knows the type

print a, transformation is a bit more complicated and perhaps has to end up as a write statement.

pramodk commented 3 years ago

Code is adapted for python3. thank you @schloegl !