Open neutrinoceros opened 2 years ago
Hi! @neutrinoceros thanks for opening the issue with such an extensive amount of details!
I was pondering with this problem for a while. It seems that the error occurs for _container_fields
(data_containers.py
), which happen to be px
, py
, etc. They are seemingly coming from the axis-aligned projections, so I have replaced ProjectionPlot(ds, "z", ...)
call with OffAxisProjectionPlot(dataset, np.array([0.0, 0.0, 1.0]), ...)
, and it worked as expected.
I didn't expect ProjectionPlot
to not be a special case of OffAxisProjectionPlot
, but the underlying code seems to be different (also from different executions times).
Hope this helps!
Oh, interesting ! Indeed, the implementations for AxisAligned
VS OffAxis
plot classes are very different. Good job finding a workaround, that'll certainly help tracking the bug down.
Bug report
Bug summary
The following notebook from yt's documentation is broken (raises a
NotImplementedError
) https://github.com/yt-project/yt/blob/main/doc/source/analyzing/particle_filter.ipynbThis was reported by Ivan Markin (@nogoegst) on Slack. Not unlike #3541, this seems like something that was broken long ago when we merged the 4.0 branch into main, so it's extremely difficult to bisect down. I'm also far from an expert in this region of the code, so I don't understand clearly what's happening and how to fix it. Did this happen because of an intentional API change ? or is this purely a regression in yt 4.0 ?
Code for reproduction Here's a self-contained version of the broken notebook
Actual outcome
Expected outcome This is the outcome in the last working version of the docs (3.6.1) (https://yt-project.org/docs/3.6.1/analyzing/filtering.html)
Version Information