Entering edit mode
8.3 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.
It looks like Globpipe was written before python3 existed...
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.
fpformat can be replaced by standard python. For example,
fpformat.fix(something, 10)
isfloat("{:15.10f}".format(something))
.popen3
can be replaced byPopen
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).