Skip to content

Commit

Permalink
Always include cell parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jan 6, 2025
1 parent bdfa65a commit e99619b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/aiidalab_qe/app/result/components/summary/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,11 @@ def _generate_report_parameters(self):
}
}

symmetry_group_info = self._get_symmetry_group_info(structure)
report["initial_structure_properties"] |= symmetry_group_info
report["initial_structure_properties"] |= {
**self._get_symmetry_group_info(structure),
"cell_lengths": "{:.3f} {:.3f} {:.3f}".format(*structure.cell_lengths),
"cell_angles": "{:.0f} {:.0f} {:.0f}".format(*structure.cell_angles),
}

report |= {
"basic_settings": {
Expand Down Expand Up @@ -302,11 +305,7 @@ def _get_pymatgen_structure(structure: orm.StructureData) -> dict:
analyzer = SpacegroupAnalyzer(structure=clone.get_pymatgen_structure())
symbol = analyzer.get_space_group_symbol()
number = analyzer.get_space_group_number()
return {
"space_group": f"{symbol} ({number})",
"cell_lengths": "{:.3f} {:.3f} {:.3f}".format(*structure.cell_lengths),
"cell_angles": "{:.0f} {:.0f} {:.0f}".format(*structure.cell_angles),
}
return {"space_group": f"{symbol} ({number})"}

@staticmethod
def _get_pymatgen_molecule(structure: orm.StructureData) -> dict:
Expand Down

0 comments on commit e99619b

Please sign in to comment.