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

DCD Module doesn't support Python 3 #659

Closed
richardjgowers opened this issue Jan 25, 2016 · 8 comments
Closed

DCD Module doesn't support Python 3 #659

richardjgowers opened this issue Jan 25, 2016 · 8 comments

Comments

@richardjgowers
Copy link
Member

The DCD module doesn't currently support Python 3

Master py3 issue: #260

There's a py3 compatible version based on our version here:
https://github.com/arose/simpletraj/tree/master/simpletraj/dcd

So hopefully this will be simple

@orbeckst
Copy link
Member

See @arose 's comments on his work modifying the MDA DCD reader for simpetraj with Py3, in #260 (comment) .

Update: sorry, saw that you already linked #260 and simpletraj...

@tylerjereddy tylerjereddy self-assigned this Jan 28, 2016
@tylerjereddy
Copy link
Member

Ok, let me take a look.

@tylerjereddy
Copy link
Member

Note that with biophysics and other talks coming up I'm a bit inundated so progress here is quite slow lately. Do feel free to reassign the task if desired, otherwise I'll just occasionally chip away it.

@tylerjereddy tylerjereddy removed their assignment Jul 20, 2016
@tylerjereddy
Copy link
Member

I've removed my assignment to this for now in case somebody else wants to step in. Otherwise, I will probably chip away at it slowly.

@dotsdl dotsdl self-assigned this Jul 20, 2016
@dotsdl
Copy link
Member

dotsdl commented Jul 20, 2016

I'll take it, but it won't be until November. If anybody else feels moved by the spirit before then, I'm happy to let them work on it.

@kain88-de
Copy link
Member

When I have some partially working cython up I'll push it to this repo instead of my fork. Then we can work together on it.

I'm strongly in favor of a clean cython port because it will increase the maintainability of the code dramatically.

@kain88-de kain88-de self-assigned this Jul 20, 2016
@orbeckst
Copy link
Member

On 20 Jul, 2016, at 13:06, Max Linke [email protected] wrote:

I'm strongly in favor of a clean cython port because it will increase the maintainability of the code dramatically.

Did you have a look at https://github.com/MDAnalysis/mdanalysis/blob/develop/package/MDAnalysis/coordinates/dcdtimeseries.pyx ? This is has a lot of cython code that shows how to use the VMD C code from “readdcd.h”.

Of course, it is later patched into the DCD object https://github.com/MDAnalysis/mdanalysis/blob/develop/package/MDAnalysis/coordinates/DCD.py#L600 which relies on the code in https://github.com/MDAnalysis/mdanalysis/blob/develop/package/MDAnalysis/coordinates/src/dcd.c – the very thing that needs to be rewritten.

Nevertheless, the reading of the trajectory in dcdtimeseries.pyx is independent from the reading in dcd.c so it should make for a useable starting point.

Oliver Beckstein * [email protected]
skype: orbeckst * [email protected]

@kain88-de
Copy link
Member

I've looked into that module. It is pretty old cython (rather pyrex) code that is close to the C-API of python. It's helpful but not as much as you would imagine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants