Skip to content

Commit

Permalink
SOF-7298: more reordering of items
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Apr 21, 2024
1 parent 1f292fc commit 2be0b47
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions src/context/providers/NonCollinearMagnetizationContextProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,46 +57,46 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm

get uiSchemaStyled() {
return {
isStartingMagnetization: {},
startingMagnetization: {
isExistingChargeDensity: {},
spinAngles: {
items: {
atomicSpecies: {
"ui:classNames": "col-xs-3",
"ui:readonly": true,
},
value: {
"ui:classNames": "col-xs-6",
angle1: {
"ui:classNames": "col-xs-3",
},
angle2: {
"ui:classNames": "col-xs-3",
},
},
"ui:readonly": !this.isStartingMagnetization,
"ui:readonly": !this.isExistingChargeDensity,
"ui:options": {
addable: false,
orderable: false,
removable: false,
},
},
isConstrainedMagnetization: {},
isExistingChargeDensity: {},
spinAngles: {
isStartingMagnetization: {},
startingMagnetization: {
items: {
atomicSpecies: {
"ui:classNames": "col-xs-3",
"ui:readonly": true,
},
angle1: {
"ui:classNames": "col-xs-3",
},
angle2: {
"ui:classNames": "col-xs-3",
value: {
"ui:classNames": "col-xs-6",
},
},
"ui:readonly": !this.isExistingChargeDensity,
"ui:readonly": !this.isStartingMagnetization,
"ui:options": {
addable: false,
orderable: false,
removable: false,
},
},
isConstrainedMagnetization: {},
constrainedMagnetization: {
"ui:classNames": "col-xs-3",
"ui:readonly": !this.isConstrainedMagnetization,
Expand All @@ -112,12 +112,12 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm
"Set initial parameters for non-collinear spin magnetic (SOC) calculation.",
type: "object",
properties: {
isStartingMagnetization: {
isExistingChargeDensity: {
type: "boolean",
title: "Set starting magnetization",
default: true,
title: "Start calculation from existing charge density",
default: false,
},
startingMagnetization: {
spinAngles: {
type: "array",
minItems: this.uniqueElementsWithLabels.length,
maxItems: this.uniqueElementsWithLabels.length,
Expand All @@ -128,22 +128,25 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm
type: "string",
title: "Atomic species",
},
value: {
angle1: {
type: "number",
title: "Starting magnetization",
title: "Angle1 (deg)",
default: 0.0,
},
angle2: {
type: "number",
title: "Angle2 (deg)",
default: 0.0,
minimum: -1.0,
maximum: 1.0,
},
},
},
},
isExistingChargeDensity: {
isStartingMagnetization: {
type: "boolean",
title: "Start calculation from existing charge density",
default: false,
title: "Set starting magnetization",
default: true,
},
spinAngles: {
startingMagnetization: {
type: "array",
minItems: this.uniqueElementsWithLabels.length,
maxItems: this.uniqueElementsWithLabels.length,
Expand All @@ -154,15 +157,12 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm
type: "string",
title: "Atomic species",
},
angle1: {
type: "number",
title: "Angle1 (deg)",
default: 0.0,
},
angle2: {
value: {
type: "number",
title: "Angle2 (deg)",
title: "Starting magnetization",
default: 0.0,
minimum: -1.0,
maximum: 1.0,
},
},
},
Expand Down

0 comments on commit 2be0b47

Please sign in to comment.