Skip to content

Commit

Permalink
Merge pull request #18 from Exabyte-io/feat/SOF-6892
Browse files Browse the repository at this point in the history
SOF-6892: add hubbard parameters property/result
  • Loading branch information
pranabdas authored Dec 9, 2023
2 parents e44528e + e2990e4 commit 41c39c2
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Continuous testing and publication to NPM from 'main'

on:
on:
workflow_dispatch:
push:

Expand All @@ -16,14 +16,14 @@ jobs:
if: github.repository != 'Exabyte-io/template-definitions'
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [14.x, 16.x, 18.x]

steps:
- name: Checkout this repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Checkout actions repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand All @@ -41,10 +41,10 @@ jobs:

steps:
- name: Checkout this repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Checkout actions repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions src/classmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +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 { 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 @@ -56,6 +57,7 @@ export const PROPERTY_CLASS_MAP = {
[PROPERTIES.pseudopotential]: Pseudopotential,
[PROPERTIES.boundary_conditions]: null,
[PROPERTIES.dielectric_tensor]: DielectricTensorProperty,
[PROPERTIES.hubbard_u]: HubbardUProperty
};

export const PROPERTY_BRANCH_MAP = {
Expand Down
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");
}
}
1 change: 1 addition & 0 deletions src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ export const PROPERTIES = {
pseudopotential: "pseudopotential",
boundary_conditions: "boundary_conditions",
dielectric_tensor: "dielectric_tensor",
hubbard_u: "hubbard_u",
};
3 changes: 3 additions & 0 deletions src/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,7 @@ export default {
[PROPERTIES.dielectric_tensor]: {
type: PROPERTY_TYPES.non_scalar,
},
[PROPERTIES.hubbard_u]: {
type: PROPERTY_TYPES.non_scalar,
},
};

0 comments on commit 41c39c2

Please sign in to comment.