Skip to content

Commit

Permalink
Merge pull request #57 from HybriD3-database/update_dataset_dimension…
Browse files Browse the repository at this point in the history
…ality

Fixed dimensionality in datasets
  • Loading branch information
uthpalaherath authored Nov 6, 2024
2 parents 0a8ce3d + 6d0c0a7 commit 551e8c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion materials/templates/materials/dataset_contents.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ <h6><strong>Space group:</strong> {{ dataset.space_group }}</h6>
System description
</div>
<div class="card-body">
<strong>Dimensionality:</strong> {{ dataset.dimensionality }}D<br>
<strong>Dimensionality:</strong> {{ dataset_list.first.system.get_dimensionality_display }}D
{% if dataset_list.first.system.dimensionality == 2 or dataset_list.first.system.dimensionality == 3 %}
n: {{ dataset_list.first.system.n }}
{% endif %}
<br>
<strong>Sample type:</strong> {{ dataset.get_sample_type_display }}<br>
</div>
</div>
Expand Down

0 comments on commit 551e8c1

Please sign in to comment.