Skip to content

Commit

Permalink
SOF-7136: create a common base class for all Hubbard properties
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Dec 23, 2023
1 parent 0839e4d commit 163c7c6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 21 deletions.
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";
8 changes: 1 addition & 7 deletions src/include/non-scalar/hubbard_v.js
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
import { Property } from "../../property";

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

export class HubbardVNNProperty extends Property {
get values() {
return this.prop("values");
}
}
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");
}
}

0 comments on commit 163c7c6

Please sign in to comment.