Globplot/Globpipe in python3
0
0
Entering edit mode
7.7 years ago
User 6777 ▴ 20

Has anyone tried to modify the Globpipe (http://globplot.embl.de/) code in python3? I found out that the current version imports some modules that are obscure in py3.

python globplot • 1.4k views
ADD COMMENT
0
Entering edit mode

It looks like Globpipe was written before python3 existed...

ADD REPLY
0
Entering edit mode

Yes. It was written in Python2. But it should be converted to py3 to remain practical. I asked Michael Kuhn (author) also, but he is saying he can't help. The problem is with the obscure modules that are imported in python2. I don''t know how to change those modules in code. Code is here: https://github.com/mkuhn/globplot.

ADD REPLY
0
Entering edit mode

fpformat can be replaced by standard python. For example, fpformat.fix(something, 10) is float("{:15.10f}".format(something)). popen3 can be replaced by Popen from the subprocess module.

As an aside, I wouldn't be surprised if the majority of python programs are still python2 only. While there are some benefits to python3, there's no real killer feature (UTF8 everywhere and a 64bit integer type aren't really killer features).

ADD REPLY

Login before adding your answer.

Traffic: 2199 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6