-
Notifications
You must be signed in to change notification settings - Fork 90
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
No way to plot bands written by save_bands
#1052
Comments
Yeah that's currently not possible. Feel free to suggest something. May involve finally changing from named tuples to something else for holding scf results and bands. |
The biggest problem seems to be that the basis is not saved. I'm sure we can continue without a dedicated struct for a while if we want to. 😄 |
I also ran into this today. A band_data = compute_bands(scfres)
save_bands("bands.jld2", band_data)
jld = jldopen("bands.jld2")
basis = Base.get_extension(DFTK, :DFTKJLD2Ext).load_basis(jld) |
We can certainly hack something, but in principle I dont see why plotting the bands needs a basis if the bands eigenvalues are already computed. |
I am trying to save bands to a jld2 file with
save_bands
, however if I do that I can't seem to easily load them for plotting with DFTK later? 😄The text was updated successfully, but these errors were encountered: