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

topotools.dimensionality sometimes treats 1D networks as 2D #1703

Closed
ma-sadeghi opened this issue Oct 17, 2020 · 0 comments · Fixed by #1702
Closed

topotools.dimensionality sometimes treats 1D networks as 2D #1703

ma-sadeghi opened this issue Oct 17, 2020 · 0 comments · Fixed by #1702
Labels

Comments

@ma-sadeghi
Copy link
Member

ma-sadeghi commented Oct 17, 2020

Although extremely rare, it's still a bug. It's even hard to reproduce, but I had this problem when I was doing manual coordinate manipulations for the CL project.

import openpnm as op

net = op.network.Cubic([1, 1, 5], spacing=1.2345678e-20)
net["pore.coords"][0, 0] = net["pore.coords"][:, 0].mean()
dims = op.topotools.dimensionality(net)
print(dims)
>>> [True False  True]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant