Skip to content

Commit

Permalink
SOF-6927: include atomic labels property
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Mar 11, 2024
1 parent b1fad1c commit e0fd87b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["@exabyte-io/eslint-config"],
"globals": {
"Highcharts": "readonly",
"Highcharts": "readonly"
}
}
1 change: 1 addition & 0 deletions src/classmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const PROPERTY_CLASS_MAP = {
[PROPERTIES.total_energy_contrib]: null,
[PROPERTIES.atomic_forces]: null,
[PROPERTIES.atomic_constraints]: null,
[PROPERTIES.atomic_labels]: null,
[PROPERTIES.stress_tensor]: null,
[PROPERTIES.dos]: DensityOfStatesProperty,
[PROPERTIES.band_structure]: BandStructureProperty,
Expand Down
1 change: 1 addition & 0 deletions src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const PROPERTIES = {
total_energy_contrib: "total_energy_contributions",
atomic_forces: "atomic_forces",
atomic_constraints: "atomic_constraints",
atomic_labels: "atomic_labels",
stress_tensor: "stress_tensor",
dos: "density_of_states",
band_structure: "band_structure",
Expand Down
3 changes: 3 additions & 0 deletions src/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export default {
[PROPERTIES.atomic_constraints]: {
type: PROPERTY_TYPES.non_scalar,
},
[PROPERTIES.atomic_labels]: {
type: PROPERTY_TYPES.scalar,
},
[PROPERTIES.stress_tensor]: {
type: PROPERTY_TYPES.tensor,
},
Expand Down

0 comments on commit e0fd87b

Please sign in to comment.