Skip to content

Commit

Permalink
SOF-6873: include valence configuration in pseudopotential schema
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Aug 30, 2023
1 parent bc043af commit d7da65a
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
27 changes: 27 additions & 0 deletions schema/core/reusable/atomic_orbital.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"schemaId": "core/reusable/atomic_orbital.json",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "atomic orbital schema",
"type": "object",
"properties": {
"orbital": {
"type": "string",
"pattern": "^[1-7][sSpPdDfF]$"
},
"principalNumber": {
"type": "number",
"minimum": 1,
"maximum": 7
},
"lNumber": {
"type": "number",
"minimum": 0,
"maximum": 3
},
"occupation": {
"type": "number",
"minimum": 0,
"maximum": 14
}
}
}
4 changes: 4 additions & 0 deletions schema/method.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"data": {
"description": "additional data specific to method, eg. array of pseudopotentials",
"type": "object"
},
"valenceConfiguration": {
"description": "array of atomic orbitals",
"type": "array"
}
},
"required": [
Expand Down
6 changes: 6 additions & 0 deletions schema/methods_directory/pseudopotential.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
"$ref": "pseudopotential/dataset.json"
}
}
},
"valenceConfiguration": {
"type": "array",
"items": {
"$ref": "../core/reusable/atomic_orbital.json"
}
}
}
}
6 changes: 6 additions & 0 deletions schema/methods_directory/pseudopotential/file.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
"valenceElectrons": {
"type": "integer"
},
"valenceConfiguration": {
"type": "array",
"items": {
"$ref": "../../core/reusable/atomic_orbital.json"
}
},
"coreStates": {
"type": "string",
"enum": [
Expand Down

0 comments on commit d7da65a

Please sign in to comment.