Skip to content

Commit

Permalink
Add structure uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jan 4, 2025
1 parent f315095 commit 333afd9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/aiidalab_qe/app/result/components/summary/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def _generate_report_parameters(self):
"modification_time": format_time(qeapp_wc.mtime),
"modification_time_relative": relative_time(qeapp_wc.mtime),
"structure_pk": initial_structure.pk,
"structure_uuid": initial_structure.uuid,
"formula": initial_structure.get_formula(),
"num_atoms": len(initial_structure.sites),
"space_group": "{} ({})".format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<li>
<strong>Structure PK:</strong> {{ structure_pk }}
</li>
<li>
<strong>Structure UUID:</strong> {{ structure_uuid }}
</li>
<li>
<strong>Chemical formula:</strong> {{ formula }}
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
<td>Structure PK</td>
<td>{{ structure_pk }}</td>
</tr>
<tr>
<td>Structure UUID</td>
<td>{{ structure_uuid }}</td>
</tr>
<tr>
<td>Chemical formula</td>
<td>{{ formula }}</td>
Expand Down

0 comments on commit 333afd9

Please sign in to comment.