-
Notifications
You must be signed in to change notification settings - Fork 18
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
Pymol can't read OpenDX file produced by GridDataFormats #35
Comments
Found a simple solution. Both vmd and pymol can read the file if 'float' is changed to 'double' |
Thanks, I'll have a look. |
@rxu2 sorry, I completely forgot about this issue. Through your link above (and the patch) it is clear that this is really a bug in pymol (it hard-codes As discussed in MDAnalysis/mdanalysis#1725 , |
- requires gridDataFormats >= 0.4.0 (to be released) - documented that PyMOL requires type="double" (see MDAnalysis/GridDataFormats#35 for details) - added tests for Density.export(..., type=<type>) -- note that they really only test gridData.Grid.export() - fixes #1725
- requires gridDataFormats >= 0.4.0 (to be released) - documented that PyMOL requires type="double" (see MDAnalysis/GridDataFormats#35 for details) - added tests for Density.export(..., type=<type>) -- note that they really only test gridData.Grid.export() - updated CHANGELOG - fixes #1725
closed by #36 |
- requires gridDataFormats >= 0.4.0 - documented that PyMOL requires type="double" (see MDAnalysis/GridDataFormats#35 for details) - link to GridDataFormats docs for OpenDX type - use intersphinx to the mdanalysis.org GridDataFormats docs instead of RTD (better brand experience by staying inside mdanalysis.org...) - added tests for Density.export(..., type=<type>) -- note that they really only test gridData.Grid.export() - updated CHANGELOG - fixes #1725
- requires gridDataFormats >= 0.4.0 - documented that PyMOL requires type="double" (see MDAnalysis/GridDataFormats#35 for details) - link to GridDataFormats docs for OpenDX type - use intersphinx to the mdanalysis.org GridDataFormats docs instead of RTD (better brand experience by staying inside mdanalysis.org...) - added tests for Density.export(..., type=<type>) -- note that they really only test gridData.Grid.export() - updated CHANGELOG - fixes #1725
This change works around another example of poorly hard-coded DX parser (see also issue MDAnalysis#35). See the code below from the GridForcesGrid.C file in NAMD: ``` fscanf(poten_fp, "object %*d class array type double rank 0 " "items %*d data follows\n"); ``` which will only work if the quote character (introduced in 115b05a to appease the PyMol parser) is omitted.
This change works around another example of poorly hard-coded DX parser (see also issue MDAnalysis#35). See the code below from the GridForcesGrid.C file in NAMD: fscanf(poten_fp, "object %*d class array type double rank 0 " "items %*d data follows\n"); which will only work if the quote character (introduced in 115b05a to appease the PyMol parser) is omitted.
I made a DX file with the following python program:
When I load
test.dx
into pymol (PyMOL 1.8.4.0 Open-Source
on Linux) with the bash command ($ pymol test.dx
), I get the following error messages from pymol:Here is the test.dx file:
The text was updated successfully, but these errors were encountered: