-
Notifications
You must be signed in to change notification settings - Fork 26
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
eq.compute doesn't correctly override grids to compute quantities that require evaluating functions along field lines #904
Comments
This logic is intentional, see #440 |
See also #688 and related PR |
Well, it definitely throws an error on the ballooning branch when I create a separate grid before calculating the growth rate using eq.compute. I get assertion error and see this code
|
It sounds like you might just need to pass If you can post some code that reproduces the issue I can look into it more. |
Yeah, with override_grid=False, it worked fine. I was just thinking that it could be a potential issue for people doing calculations on a custom grid. It also only becomes an issue when I do this calculation in a jupyter notebook. Ok, I guess we can close this for now. |
At some point, can you show where you have needed to use For example, I recently fixed a bug in |
In the compute function in equilibrium.py if the user provides a grid, the function should set override_grid = False.
https://github.com/PlasmaControl/DESC/blob/f1689c85c022d5e8073325b7c057f6ea253923b4/desc/equilibrium/equilibrium.py#L794C1-L800C14
However, override_grid still stays True. This is a simple fix.
The text was updated successfully, but these errors were encountered: