-
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
TypeError in 'plot_comparison' #1202
Comments
So, I guess the main use case of fig, ax = plot_comparison([eq0], rho=np.array(1.0), theta=0, labels=["eq0"], color="red");
plot_comparison([eq1], rho=np.array(1.0), theta=0, labels=["eq1"], ax=ax); We should throw an error for inputs with different NFP. |
#1204 should explain why these errors occur (in one case they are a bug, in the other it is an unforeseen use case that is ambiguous) and resolve them. If you still want to plot multiple equilibria which have differing NFPs where they are both nonaxisymmetric, you should instead make multiple calls to phi = np.linspace(0,2*np.pi,6,endpoint=False)
fig,ax = plot_surfaces(eq0, phi=phi)
plot_surfaces(eq1, phi=phi,ax=ax) |
Hello,
When I run the plot_comparison function, I get some errors.
It seems that it is necessary for the user to define "phi" parameters to avoid this TypeError.
TypeError: reshape total size must be unchanged, got new_sizes (5, 1, 180) for shape (1080,).
Attached is the Jupyter notebook and *.h5 file I used.
Bug_report_plot_comparison.zip
The text was updated successfully, but these errors were encountered: