-
Notifications
You must be signed in to change notification settings - Fork 271
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
BUG: white box artefact produced in SlicePlot #3889
Comments
Hi, and welcome to yt! Thanks for opening your first issue. We have an issue template that helps us to gather relevant information to help diagnosing and fixing the issue. |
Hi Ben, thanks for reporting. |
Excellent, thanks for checking. I wouldn't be surprised if this was due to the default slice plane (at z=0) being exactly at the interface between two blocks, resulting in none of them being selected. center = ds.arr([7.7125e+19, 7.7125e+19, 7.7125e+19*1.01], 'code_length')
p = yt.SlicePlot(ds, "z", ("boxlib", "scalar"), center=center) If my hunch is right, you should also not see this problem with a |
So we still need to confirm that we understand why this happens, but if I am correct then I'm not too hopeful that this can be fixed (see #3828) That said, it should be possible to mitigate the problem when inside then domain (rather than on the very edge of it). |
Why can't this be fixed? (For instance, VTK handles this situation correctly.) How is the rendering implemented in yt? |
Let me rephrase that: I don't currently know how this could be fixed, because it's supposed to work already. Normally when a slice plane lands right on the edge of two blocks, the left one is selected and the right one isn't. This is where this rule is defined yt/yt/geometry/_selection_routines/slice_selector.pxi Lines 100 to 102 in a1bce43
|
Just wanted to check on this. We can workaround by offsetting the slice plane, but it's an obstacle for new users. Also: I've only noticed this happening for output files that don't include ghost cells. Not sure if that gives any clue as to what's going on. |
Bug report
Bug summary
A white box is inexplicably plotted on top of a SlicePlot.
Code for reproduction
The dataset that reproduces this is here: https://cloudstor.aarnet.edu.au/plus/s/eWh5FxbrqaLaj09
Actual outcome
Expected outcome
The data can be plotted correctly using VisIt:
Version Information
Python 3.10 is system-provided.
I installed yt with:
pip install git+https://github.com/yt-project/yt.git
The text was updated successfully, but these errors were encountered: