Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scripts to use python3 #3

Merged
merged 1 commit into from May 28, 2019

Conversation

Projects
None yet
2 participants
@sanjayankur31
Copy link
Contributor

commented Dec 9, 2018

This updates the scripts to use Python3 using 2to3, and updates the shebangs also.

(python2 will reach end-of-life soon).

@genesis-sim

This comment has been minimized.

Copy link
Owner

commented Dec 20, 2018

Hi Ankur, thanks for the updates to GENESIS. I am particularly interested in
the conversion of the Python 2 scripts in genesis/Scripts/gpython-tools
to Python 3. With the phasing out of Python 2, this is necessary, and these
are the tools that I use for my simulation analysis. I may put the Python 3
versions into a separate directory gpython-tools/python3.

However, I discovered a new problem that will have to be fixed in both
versions. When I upgraded my computer from Fedora 27 to 29, I found that
my favorite plotting program, gipyplot.pyh was broken. This is true with your
python3 version also, and seems to be from a change in matplotlib.

I've found the solution, and sometime before the end of the year will
try to get these changes incorporated.

Are you working with Volker Steuber? Doing anything intesting with
GENESIS?

@sanjayankur31

This comment has been minimized.

Copy link
Contributor Author

commented Dec 21, 2018

Hello!

Thank you for looking into this. Yes, I did feel I was being overly optimistic that a simple 2to3 would be enough. I'd not been able to thoroughly test the scripts myself.

Yes, Volker is my principal PhD supervisor. (I'm just wrapping up my PhD now). Unfortunately, I haven't needed genesis in my work yet. My PhD work is limited to larger network models, so I use NEST at the moment. I knew of Genesis and wanted to make it available in NeuroFedora---I work on it on the side with help from other Fedora community volunteers. (We'll formally announce NeuroFedora once we have documentation up, hopefully, in the first week of the new year)

Genesis is available in neurofedora now, so users should be able to install in on a current Fedora release soon using:

sudo dnf install genesis-simulator

It's currently in testing so it temporarily requires enabling the updates-testing repository. I expect I'll push it to stable when I get back to work after Christmas.

sudo dnf --enablerepo=updates-testing install genesis-simulator

We hope that making well established tools like genesis easily available will enable the research community use them better, and at the same time, get folks interested in helping maintain these tools. If you have any feedback at all, we'd love to hear it :)

@genesis-sim genesis-sim merged commit b3f5497 into genesis-sim:master May 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.