File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
examples/periodic-hamiltonian Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2525import requests
2626import torch
2727from matplotlib .animation import FuncAnimation
28- from mlelec .data .derived_properties import compute_eigenvalues
29- from mlelec .data .mldataset import MLDataset
3028from mlelec .data .qmdataset import QMDataset
31- from mlelec .models .equivariant_lightning import LitEquivariantModel , MSELoss
3229from mlelec .utils .pbc_utils import blocks_to_matrix
3330from mlelec .utils .plot_utils import plot_bands_frame
3431
3532
33+ os .environ ["PYSCFAD_BACKEND" ] = "torch"
34+ from mlelec .data .derived_properties import compute_eigenvalues # noqa: E402
35+ from mlelec .data .mldataset import MLDataset # noqa: E402
36+ from mlelec .models .equivariant_lightning import ( # noqa: E402
37+ LitEquivariantModel ,
38+ MSELoss ,
39+ )
40+
41+
3642warnings .filterwarnings ("ignore" )
3743torch .set_default_dtype (torch .float64 )
3844
You can’t perform that action at this time.
0 commit comments