Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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 |
-
|
|
|
|
|
|
|
| 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 |
|