Skip to content

Commit

Permalink
SOF-7123: fix siteIndex2 defaultData + re-order of form fields
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Dec 10, 2023
1 parent cd07466 commit a647377
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/context/providers/HubbardVContextProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class HubbardVContextProvider extends HubbardUContextProvider {
...defaultHubbardConfig,
atomicSpecies: this.firstSpecies,
atomicSpecies2: this.secondSpecies,
siteIndex2: this.uniqueElements?.length > 1 ? 2 : defaultHubbardConfig.siteIndex2,
},
];
}
Expand Down Expand Up @@ -66,6 +67,11 @@ export class HubbardVContextProvider extends HubbardUContextProvider {
enum: this.uniqueElements,
default: this.firstSpecies,
},
siteIndex: {
type: "integer",
title: "Site no 1",
default: defaultHubbardConfig.siteIndex,
},
atomicOrbital: {
type: "string",
title: "Orbital 1",
Expand Down Expand Up @@ -97,6 +103,12 @@ export class HubbardVContextProvider extends HubbardUContextProvider {
enum: this.uniqueElements,
default: this.secondSpecies,
},
siteIndex2: {
type: "integer",
title: "Site no 2",
default:
this.uniqueElements?.length > 1 ? 2 : defaultHubbardConfig.siteIndex2,
},
atomicOrbital2: {
type: "string",
title: "Orbital 2",
Expand All @@ -122,17 +134,6 @@ export class HubbardVContextProvider extends HubbardUContextProvider {
],
default: defaultHubbardConfig.atomicOrbital,
},
siteIndex: {
type: "integer",
title: "Site no 1",
default: defaultHubbardConfig.siteIndex,
},
siteIndex2: {
type: "integer",
title: "Site no 2",
default:
this.uniqueElements?.length > 1 ? 2 : defaultHubbardConfig.siteIndex2,
},
hubbardVValue: {
type: "number",
title: "V (eV)",
Expand Down

0 comments on commit a647377

Please sign in to comment.