Skip to content

Commit

Permalink
Merge branch 'dev' into feature/SOF-7053
Browse files Browse the repository at this point in the history
  • Loading branch information
timurbazhirov authored Oct 31, 2023
2 parents f9ed5fa + d8dfefb commit 955b182
Show file tree
Hide file tree
Showing 44 changed files with 525 additions and 59 deletions.
3 changes: 3 additions & 0 deletions example/method/method_parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"basisSlug": "6-311G"
}
4 changes: 4 additions & 0 deletions example/methods_directory/legacy/localorbital.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "localorbital",
"subtype": "pople"
}
4 changes: 4 additions & 0 deletions example/methods_directory/legacy/pseudopotential.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "pseudopotential",
"subtype": "us"
}
61 changes: 61 additions & 0 deletions example/methods_directory/legacy/regression.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"data": {
"dataSet": {
"exabyteIds": [
"LCthJ6E2QabYCZqf4",
"LCthJ6E2QabYCZqf5",
"LCthJ6E2QabYCZqf6",
"LCthJ6E2QabYCZqf7",
"LCthJ6E2QabYCZqf8",
"LCthJ6E2QabYCZqf9",
"LCthJ6E2QabYCZq10",
"LCthJ6E2QabYCZq11"
],
"extra": {}
},
"perProperty": [
{
"intercept": 0.363,
"name": "band_gaps:direct",
"perFeature": [
{
"coefficient": 0.015,
"importance": 0.134,
"name": "atomic_radius:Ge"
},
{
"coefficient": 0.016,
"importance": 0.135,
"name": "atomic_radius:Si"
}
]
},
{
"intercept": 0.364,
"name": "band_gaps:indirect",
"perFeature": [
{
"coefficient": 0.016,
"importance": 0.135,
"name": "atomic_radius:Ge"
},
{
"coefficient": 0.017,
"importance": 0.136,
"name": "atomic_radius:Si"
}
]
}
]
},
"precision": {
"perProperty": [
{
"score": 0.8,
"trainingError": 0.002
}
]
},
"subtype": "least_squares",
"type": "linear"
}
4 changes: 4 additions & 0 deletions example/methods_directory/legacy/unknown.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "unknown",
"subtype": "unknown"
}
7 changes: 7 additions & 0 deletions example/model/model_parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"functional": "pbe",
"dispersionCorrection": "dft-d3",
"hubbardType": "u",
"spinPolarization": "collinear",
"spinOrbitCoupling": true
}
8 changes: 8 additions & 0 deletions example/models_directory/legacy/dft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "dft",
"subtype": "gga",
"functional": "pbe",
"method": {
"...": "include(../../method.json)"
}
}
7 changes: 7 additions & 0 deletions example/models_directory/legacy/ml.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "ml",
"subtype": "re",
"method": {
"...": "include(../../method.json)"
}
}
7 changes: 7 additions & 0 deletions example/models_directory/legacy/unknown.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "unknown",
"subtype": "unknown",
"method": {
"...": "include(../../method.json)"
}
}
2 changes: 1 addition & 1 deletion schema/core/reusable/categories.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$id": "core/reusable/categories",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "categories schema",
"title": "categories",
"description": "Used to categorize entities such as models and methods",
"type": "object",
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion schema/method.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$id": "method",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "method schema (base)",
"title": "base method",
"properties": {
"type": {
"description": "general type of this method, eg. `pseudopotential`",
Expand Down
7 changes: 2 additions & 5 deletions schema/method/categorized_method.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
{
"$id": "method/categorized-method",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "categorized method schema",
"title": "categorized method",
"allOf": [
{
"$ref": "../system/name.json"
"$ref": "../system/path_entity.json"
},
{
"$ref": "../system/tags.json"
}
],
"properties": {
"path": {
"$ref": "../core/reusable/category_path.json"
},
"units": {
"type": "array",
"items": {
Expand Down
20 changes: 20 additions & 0 deletions schema/method/method_parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$id": "method/method-parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "MethodParameters",
"allOf": [
{
"oneOf": [
{
"$ref": "../methods_directory/physical/ao/dunning.json#/definitions/ao-basis-dunning"
},
{
"$ref": "../methods_directory/physical/ao/pople.json#/definitions/ao-basis-pople"
},
{
"$ref": "../methods_directory/physical/ao/other.json#/definitions/ao-basis-other"
}
]
}
]
}
8 changes: 2 additions & 6 deletions schema/method/unit_method.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$id": "method/unit-method",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "unit method schema (base)",
"title": "categorized unit method",
"allOf": [
{
"$ref": "../system/name.json"
"$ref": "../system/path_entity.json"
},
{
"$ref": "../system/tags.json"
Expand All @@ -15,10 +15,6 @@
"description": "Method categories",
"$ref": "../core/reusable/categories.json"
},
"path": {
"description": "URL-like method path, e.g. physical/pw",
"$ref": "../core/reusable/category_path.json"
},
"parameters": {
"description": "Instructive parameters defining the method",
"type": "object"
Expand Down
22 changes: 22 additions & 0 deletions schema/methods_directory/legacy/localorbital.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$id": "methods-directory/legacy/localorbital",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "legacy method localorbital",
"allOf": [
{
"$ref": "../../method.json"
}
],
"properties": {
"type": {
"enum": [
"localorbital"
]
},
"subtype": {
"enum": [
"pople"
]
}
}
}
25 changes: 25 additions & 0 deletions schema/methods_directory/legacy/pseudopotential.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$id": "methods-directory/legacy/pseudopotential",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "legacy method pseudopotential",
"allOf": [
{
"$ref": "../../method.json"
}
],
"properties": {
"type": {
"enum": [
"pseudopotential"
]
},
"subtype": {
"enum": [
"paw",
"nc",
"us",
"any"
]
}
}
}
34 changes: 34 additions & 0 deletions schema/methods_directory/legacy/regression.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$id": "methods-directory/legacy/regression",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "legacy method regression",
"allOf": [
{
"$ref": "../../method.json"
}
],
"properties": {
"type": {
"enum": [
"linear",
"kernel_ridge"
]
},
"subtype": {
"enum": [
"least_squares",
"ridge"
]
},
"precision": {
"$ref": "../mathematical/regression/precision.json"
},
"data": {
"$ref": "../mathematical/regression/data.json"
}
},
"required": [
"precision",
"data"
]
}
22 changes: 22 additions & 0 deletions schema/methods_directory/legacy/unknown.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$id": "methods-directory/legacy/unknown",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "legacy method unknown",
"allOf": [
{
"$ref": "../../method.json"
}
],
"properties": {
"type": {
"enum": [
"unknown"
]
},
"subtype": {
"enum": [
"unknown"
]
}
}
}
4 changes: 3 additions & 1 deletion schema/methods_directory/mathematical/cg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$id": "methods-directory/mathematical/cg",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "unit method conjugate gradient",
"description": "conjugate gradient method schema",
"allOf": [
{
Expand All @@ -11,5 +12,6 @@
"categories": {
"$ref": "../../methods_category/mathematical/opt/diff/ordern/cg.json"
}
}
},
"required": ["categories"]
}
4 changes: 3 additions & 1 deletion schema/methods_directory/mathematical/davidson.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$id": "methods-directory/mathematical/davidson",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "unit method davidson",
"description": "Davidson diagonalization method",
"allOf": [
{
Expand All @@ -11,5 +12,6 @@
"categories": {
"$ref": "../../methods_category/mathematical/linalg/diag/davidson.json"
}
}
},
"required": ["categories"]
}
3 changes: 2 additions & 1 deletion schema/methods_directory/mathematical/regression.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$id": "methods-directory/mathematical/regression",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "linear methods schema",
"title": "unit method regression",
"allOf": [
{
"$ref": "../../method/unit_method.json"
Expand All @@ -19,6 +19,7 @@
}
},
"required": [
"categories",
"precision",
"data"
]
Expand Down
17 changes: 12 additions & 5 deletions schema/methods_directory/physical/ao/dunning.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$id": "methods-directory/physical/ao/dunning",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "unit method ao dunning",
"description": "Dunning correlation-consistent basis set unit method",
"allOf": [
{
Expand All @@ -14,13 +15,19 @@
"parameters": {
"allOf": [
{
"properties": {
"basisSlug": {
"$ref": "./enum_options.json#/dunningAoBasis"
}
}
"$ref": "#/definitions/ao-basis-dunning"
}
]
}
},
"required": ["categories"],
"definitions": {
"ao-basis-dunning": {
"properties": {
"basisSlug": {
"$ref": "./enum_options.json#/dunningAoBasis"
}
}
}
}
}
Loading

0 comments on commit 955b182

Please sign in to comment.