Hafnium49 commited on
Commit
2c4496c
·
verified ·
1 Parent(s): 76ea6d0

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -78,7 +78,9 @@ def calculate_phonon_dos(cif_string: str, progress=gr.Progress(track_tqdm=True))
78
  pot = get_model()
79
  relaxer = Relaxer(potential=pot)
80
  relax_result = relaxer.relax(atoms, fmax=RELAX_FMAX)
81
- relaxed_atoms = relax_result["final_structure"]
 
 
82
 
83
  print(f"[Phonon] Relaxation complete.")
84
 
 
78
  pot = get_model()
79
  relaxer = Relaxer(potential=pot)
80
  relax_result = relaxer.relax(atoms, fmax=RELAX_FMAX)
81
+ # relax_result["final_structure"] is a pymatgen Structure, convert to ASE Atoms
82
+ relaxed_structure = relax_result["final_structure"]
83
+ relaxed_atoms = AseAtomsAdaptor.get_atoms(relaxed_structure)
84
 
85
  print(f"[Phonon] Relaxation complete.")
86