Skip to content

Commit

Permalink
SOF-6896: move data field from psp/file to psp schema
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Nov 21, 2023
1 parent 53d1a4f commit 4c2fc77
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 52 deletions.
83 changes: 40 additions & 43 deletions example/methods_directory/physical/psp/file.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,42 @@
{
"slug": "pseudopotential",
"data": {
"element": "Ru",
"hash": "3349af97451e04faae570056fb6a110b",
"filename": "ru_pbe_dojo-oncv_0.4.upf",
"path": "/export/share/pseudo/ru/gga/pbe/dojo-oncv/0.4/nc/ru_pbe_dojo-oncv_0.4.upf",
"valenceConfiguration": [
{
"orbitalName": "4S",
"orbitalIndex": 1,
"principalNumber": 4,
"angularMomentum": 0,
"occupation": 2.0
},
{
"orbitalName": "4P",
"orbitalIndex": 2,
"principalNumber": 4,
"angularMomentum": 1,
"occupation": 6.0
},
{
"orbitalName": "4D",
"orbitalIndex": 3,
"principalNumber": 4,
"angularMomentum": 2,
"occupation": 7.0
},
{
"orbitalName": "5S",
"orbitalIndex": 4,
"principalNumber": 5,
"angularMomentum": 0,
"occupation": 1.0
}
],
"apps": ["espresso"],
"exchangeCorrelation": { "functional": "pbe", "approximation": "gga" },
"name": "pseudopotential",
"source": "dojo-oncv",
"type": "nc",
"version": "0.4"
}
"element": "Ru",
"hash": "3349af97451e04faae570056fb6a110b",
"filename": "ru_pbe_dojo-oncv_0.4.upf",
"path": "/export/share/pseudo/ru/gga/pbe/dojo-oncv/0.4/nc/ru_pbe_dojo-oncv_0.4.upf",
"valenceConfiguration": [
{
"orbitalName": "4S",
"orbitalIndex": 1,
"principalNumber": 4,
"angularMomentum": 0,
"occupation": 2.0
},
{
"orbitalName": "4P",
"orbitalIndex": 2,
"principalNumber": 4,
"angularMomentum": 1,
"occupation": 6.0
},
{
"orbitalName": "4D",
"orbitalIndex": 3,
"principalNumber": 4,
"angularMomentum": 2,
"occupation": 7.0
},
{
"orbitalName": "5S",
"orbitalIndex": 4,
"principalNumber": 5,
"angularMomentum": 0,
"occupation": 1.0
}
],
"apps": ["espresso"],
"exchangeCorrelation": { "functional": "pbe", "approximation": "gga" },
"name": "pseudopotential",
"source": "dojo-oncv",
"type": "nc",
"version": "0.4"
}
23 changes: 14 additions & 9 deletions schema/methods_directory/physical/psp.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@
"categories": {
"$ref": "../../methods_category/physical/qm/wf/psp.json"
},
"slug": {
"type": "string",
"description": "pseudopotential"
},
"data": {
"type": "array",
"items": {
"description": "Specific data based on pseudopotential file.",
"$ref": "./psp/file.json"
"metaProperties": {
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "pseudopotential"
},
"data": {
"type": "array",
"items": {
"description": "Specific data based on pseudopotential file.",
"$ref": "./psp/file.json"
}
}
}
}
},
Expand Down

0 comments on commit 4c2fc77

Please sign in to comment.