Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/SOF-7173
Browse files Browse the repository at this point in the history
  • Loading branch information
seankwarren committed Jan 3, 2024
2 parents 4e7d07c + ddcd767 commit 51f8e64
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 8 deletions.
6 changes: 5 additions & 1 deletion src/classmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { ChargeDensityProfileProperty } from "./include/non-scalar/charge_densit
import { DensityOfStatesProperty } from "./include/non-scalar/density_of_states";
import { DielectricTensorProperty } from "./include/non-scalar/dielectric_tensor";
import { HubbardUProperty } from "./include/non-scalar/hubbard_u";
import { HubbardVProperty } from "./include/non-scalar/hubbard_v";
import { HubbardVNNProperty } from "./include/non-scalar/hubbard_v_nn";
import { PhononDispersionsProperty } from "./include/non-scalar/phonon_dispersions";
import { PhononDOSProperty } from "./include/non-scalar/phonon_dos";
import { PotentialProfileProperty } from "./include/non-scalar/potential_profile";
Expand Down Expand Up @@ -57,7 +59,9 @@ export const PROPERTY_CLASS_MAP = {
[PROPERTIES.pseudopotential]: Pseudopotential,
[PROPERTIES.boundary_conditions]: null,
[PROPERTIES.dielectric_tensor]: DielectricTensorProperty,
[PROPERTIES.hubbard_u]: HubbardUProperty
[PROPERTIES.hubbard_u]: HubbardUProperty,
[PROPERTIES.hubbard_v_nn]: HubbardVNNProperty,
[PROPERTIES.hubbard_v]: HubbardVProperty,
};

export const PROPERTY_BRANCH_MAP = {
Expand Down
8 changes: 1 addition & 7 deletions src/include/non-scalar/hubbard_u.js
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
import { Property } from "../../property";

export class HubbardUProperty extends Property {
get values() {
return this.prop("values");
}
}
export { PropertyWithValues as HubbardUProperty } from "../../propery_with_values";
1 change: 1 addition & 0 deletions src/include/non-scalar/hubbard_v.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { PropertyWithValues as HubbardVProperty } from "../../propery_with_values";
1 change: 1 addition & 0 deletions src/include/non-scalar/hubbard_v_nn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { PropertyWithValues as HubbardVNNProperty } from "../../propery_with_values";
7 changes: 7 additions & 0 deletions src/propery_with_values.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Property } from "./property";

export class PropertyWithValues extends Property {
get values() {
return this.prop("values");
}
}
2 changes: 2 additions & 0 deletions src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ export const PROPERTIES = {
boundary_conditions: "boundary_conditions",
dielectric_tensor: "dielectric_tensor",
hubbard_u: "hubbard_u",
hubbard_v_nn: "hubbard_v_nn",
hubbard_v: "hubbard_v",
};
6 changes: 6 additions & 0 deletions src/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,10 @@ export default {
[PROPERTIES.hubbard_u]: {
type: PROPERTY_TYPES.non_scalar,
},
[PROPERTIES.hubbard_v_nn]: {
type: PROPERTY_TYPES.non_scalar,
},
[PROPERTIES.hubbard_v]: {
type: PROPERTY_TYPES.non_scalar,
},
};

0 comments on commit 51f8e64

Please sign in to comment.