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

3D Slicer Bug #363

Closed
prisae opened this issue Jul 29, 2024 · 1 comment · Fixed by #364
Closed

3D Slicer Bug #363

prisae opened this issue Jul 29, 2024 · 1 comment · Fixed by #364
Labels

Comments

@prisae
Copy link
Member

prisae commented Jul 29, 2024

Confusing stuff.

In here, #261, we fixed this:

import discretize
import numpy as np
mesh = discretize.TensorMesh(([1, 1], [1, 1], [1, 1]), (0, 0, 0))
mesh.plot_3d_slicer(np.ones(mesh.n_cells))

However, the following still gives a wrong result:

import discretize
import numpy as np
mesh = discretize.TensorMesh(([1, 1], [1, 1], [1, 1]), (0, 0, 0))
mesh.plot_3d_slicer(np.zeros(mesh.n_edges_z), v_type='Ez')

Figure_1

@prisae prisae added the bug label Jul 29, 2024
@prisae
Copy link
Member Author

prisae commented Jul 29, 2024

Ah, no, the problem is not CC vs (Ex, Ey, Ez), but 0's vs 1's.

This works

import discretize
import numpy as np
mesh = discretize.TensorMesh(([1, 1], [1, 1], [1, 1]), (0, 0, 0))
mesh.plot_3d_slicer(np.ones(mesh.n_cells))

This does not

import discretize
import numpy as np
mesh = discretize.TensorMesh(([1, 1], [1, 1], [1, 1]), (0, 0, 0))
mesh.plot_3d_slicer(np.zeros(mesh.n_cells))

prisae added a commit that referenced this issue Jul 29, 2024
jcapriot added a commit that referenced this issue Sep 2, 2024
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