Skip to content

Commit

Permalink
SOF-7136: reuse hubbard_v as hubbard_v_nn
Browse files Browse the repository at this point in the history
keep the datastructures same, remove properties in difference set from being required
  • Loading branch information
pranabdas committed Dec 23, 2023
1 parent 0baa0e8 commit 6da8ce8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
3 changes: 1 addition & 2 deletions schema/properties_directory/non-scalar/hubbard_v.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Hubbard V values corresponding to atomic pairs",
"properties": {
"name": {
"enum": ["hubbard_v"]
"enum": ["hubbard_v", "hubbard_v_nn"]
},
"units": {
"enum": ["eV"]
Expand All @@ -24,7 +24,6 @@
"id2",
"atomicSpecies",
"atomicSpecies2",
"distance",
"value"
]
}
Expand Down
31 changes: 4 additions & 27 deletions schema/properties_directory/non-scalar/hubbard_v_nn.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,10 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Hubbard V parameters for nearest neighbors",
"description": "Hubbard V value in eV for nearest neighbors used in hp.x output parsing",
"properties": {
"name": {
"enum": ["hubbard_v_nn"]
},
"units": {
"enum": ["eV"]
},
"values": {
"type": "array",
"items": {
"type": "object",
"allOf": [
{
"$ref": "../../core/reusable/atomic_data_per_orbital_pair_numeric.json"
}
],
"required": [
"id",
"id2",
"atomicSpecies",
"atomicSpecies2",
"orbitalName",
"orbitalName2",
"value"
]
}
"allOf": [
{
"$ref": "hubbard_v.json"
}
},
],
"required": ["name"]
}

0 comments on commit 6da8ce8

Please sign in to comment.