-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added schemas, changed spoint to send results in json
- Loading branch information
1 parent
1dd457c
commit 4996970
Showing
4 changed files
with
70 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""Schemas for singlepoint calculation functions.""" | ||
|
||
from __future__ import annotations | ||
|
||
from pathlib import Path | ||
|
||
from janus_core.helpers.janus_types import Architectures, Properties | ||
from pydantic import BaseModel | ||
|
||
|
||
class SinglePointResults(BaseModel): | ||
"""Class validation for singlepoint results.""" | ||
|
||
results_path: Path | None | ||
forces: Properties | None | ||
energy: Properties | None | ||
stress: Properties | None | ||
hessian: Properties | None | ||
|
||
|
||
class SinglePointRequest(BaseModel): | ||
"""Class validation for singlepoint requests.""" | ||
|
||
struct: str | ||
arch: Architectures | ||
properties: list[Properties] | ||
range_selector: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters