Open jkgo232 opened 6 months ago
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.
This looks like yt is trying to use a grid data method on SPH(-like) data. (yt treats meshless finite mass FIRE data as SPH data in the backend.) I'm not sure about the details of what's going wrong though. I think I might have seen some plots where yt uses a slice of the field to draw contours of and then puts that into the grid method, but I'm really not sure about that.
@jkgo232 is this still something you're interested in? I think I could take a look at it, but it would probably take about a month and a half to get to it since I'm starting a new job soon. Also, I would want pull request #4939 to be settled first, since that affects a lot of the SPH slice and projection code.
Bug report
Bug summary
When I try to overplot contours using annotate_contour on my GIZMO data I get an error. The plot works using other annotate functions, only the contour seems to have a problem.
Code for reproduction
I used the Fire 12i example from http://yt-project.org/data in the demonstration below:
Actual outcome
Expected outcome I expected to get a slice plot with contour lines overdrawn.
Version Information
I am using a Jupyter notebook launched from an Anaconda Navigator running Anaconda3. yt was installed using conda install, but I don't remember the details. I am using yt 4.2.2 and python 3.8.18