brian-team / brian2genn

Brian 2 frontend to the GeNN simulator
http://brian2genn.readthedocs.io/
GNU General Public License v2.0
46 stars 16 forks source link

Update to support Python 3 #100

Closed neworderofjamie closed 4 years ago

neworderofjamie commented 4 years ago

I used six to solve the various iterable issues in a way that should be efficient for Python 2.7 and 3

tnowotny commented 4 years ago

tests are not looking good but I will try some manual testing tomorrow ...

mstimberg commented 4 years ago

As you might have noticed, I have added a few commits to make the test suite working. Some issues actually required fixes in Brian 2 and releasing new maintenance releases :roll_eyes:

The main changes:

With all this, tests should now all pass, I hope. Note that for Python 2.7, it is important that we install Brian 2 with pip and not with conda, since conda-forge does not upload packages for Python 2 any more – the latest available conda package for Python 2.7 is therefore 2.3, whereas for Python 3 it is 2.3.0.2 (containing the fixes I mentioned earlier).

With that out of the way, I'll soon have a closer look at the actual content of this PR :smile:

I'd suggest after its merge we'll do a release right away (without waiting for #101), since the situation is currently far from ideal. The latest Brian2GeNN release does not contain bugfixes necessary to correctly run with the latest Brian 2 release...

tnowotny commented 4 years ago

I agree, we should make a quick release now ASAP. Then it's on to #101 , which by the way is also shaping up nicely I think.

mstimberg commented 4 years ago

I agree, we should make a quick release now ASAP. Then it's on to #101 , which by the way is also shaping up nicely I think.

Done!

mstimberg commented 4 years ago

Um, just realized that Brian2GeNN 1.4 would have been a good name for the release adding support for GeNN 4, but well :roll_eyes:

tnowotny commented 4 years ago

oh well ... never mind :-)