Skip to content

Commit

Permalink
SOF-6892: rename hubbard_parameters to hubbard_u
Browse files Browse the repository at this point in the history
Note: we are going to have separate properties/parsers for Hubbard U and V
  • Loading branch information
pranabdas committed Nov 23, 2023
1 parent 4a58f3d commit 239fefb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/classmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { BandStructureProperty } from "./include/non-scalar/band_structure";
import { ChargeDensityProfileProperty } from "./include/non-scalar/charge_density_profile";
import { DensityOfStatesProperty } from "./include/non-scalar/density_of_states";
import { DielectricTensorProperty } from "./include/non-scalar/dielectric_tensor";
import { HubbardParametersProperty } from "./include/non-scalar/hubbard_parameters";
import { HubbardUProperty } from "./include/non-scalar/hubbard_u";
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 +57,7 @@ export const PROPERTY_CLASS_MAP = {
[PROPERTIES.pseudopotential]: Pseudopotential,
[PROPERTIES.boundary_conditions]: null,
[PROPERTIES.dielectric_tensor]: DielectricTensorProperty,
[PROPERTIES.hubbard_parameters]: HubbardParametersProperty
[PROPERTIES.hubbard_u]: HubbardUProperty
};

export const PROPERTY_BRANCH_MAP = {
Expand Down
11 changes: 0 additions & 11 deletions src/include/non-scalar/hubbard_parameters.js

This file was deleted.

7 changes: 7 additions & 0 deletions src/include/non-scalar/hubbard_u.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Property } from "../../property";

export class HubbardUProperty extends Property {
get values() {
return this.prop("values");
}
}
2 changes: 1 addition & 1 deletion src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ export const PROPERTIES = {
pseudopotential: "pseudopotential",
boundary_conditions: "boundary_conditions",
dielectric_tensor: "dielectric_tensor",
hubbard_parameters: "hubbard_parameters",
hubbard_u: "hubbard_u",
};
2 changes: 1 addition & 1 deletion src/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default {
[PROPERTIES.dielectric_tensor]: {
type: PROPERTY_TYPES.non_scalar,
},
[PROPERTIES.hubbard_parameters]: {
[PROPERTIES.hubbard_u]: {
type: PROPERTY_TYPES.non_scalar,
},
};

0 comments on commit 239fefb

Please sign in to comment.