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

writing of dx files fails with "NotImplementedError: Only regularly spaced grids allowed" #21

Closed
orbeckst opened this issue Dec 1, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@orbeckst
Copy link
Member

orbeckst commented Dec 1, 2015

import numpy as np
from gridData import Grid   
h, edges = np.histogramdd(np.random.random((100, 3)), bins=10)
g = Grid(h, edges)
g.export("grid.dx")

fails with NotImplementedError: Only regularly spaced grids allowed even though it should just write the dx file. This was also mentioned in MDAnalysis/mdanalysis#544 .

It's not really clear since when this is failing because that's core functionality that worked previously.

@orbeckst orbeckst self-assigned this Dec 1, 2015
@orbeckst orbeckst added the defect label Dec 1, 2015
orbeckst added a commit that referenced this issue Dec 1, 2015
- change delta to DxD array if it is 1D
- added additional test (currently failing)
- use tempdir (added to travis and tests_require)
orbeckst added a commit that referenced this issue Dec 1, 2015
- change delta to DxD array if it is 1D
- added additional test (currently failing)
- use tempdir (added to travis and tests_require)
orbeckst added a commit that referenced this issue Dec 5, 2015
fix failure to write OpenDX file (Issue #21)
@orbeckst orbeckst modified the milestone: 0.3 bugfixes Dec 5, 2015
orbeckst added a commit to MDAnalysis/mdanalysis that referenced this issue Dec 8, 2015
The new release of GridDataFormats contains the fix for issue MDAnalysis/GridDataFormats#21
which is needed to fix issue #544.
orbeckst added a commit to MDAnalysis/mdanalysis that referenced this issue Dec 9, 2015
The new release of GridDataFormats contains the fix for issue MDAnalysis/GridDataFormats#21
which is needed to fix issue #544.
orbeckst added a commit to MDAnalysis/mdanalysis that referenced this issue Dec 10, 2015
The new release of GridDataFormats contains the fix for issue MDAnalysis/GridDataFormats#21
which is needed to fix issue #544.
orbeckst added a commit to MDAnalysis/mdanalysis that referenced this issue Dec 12, 2015
- The new release 0.3.1 of GridDataFormats contains the fix for issue MDAnalysis/GridDataFormats#21
  which is needed to fix issue #544.
- The release 0.3.2 allows importing of gridData without scipy.ndimage present
  (MDAnalysis/GridDataFormats#25): this allows the minimal tests to pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant