-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #371 from damar-wicaksono/dev-363
function_id and input_id are now properties of ProbInput
- Loading branch information
Showing
47 changed files
with
1,403 additions
and
1,563 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 was deleted.
Oops, something went wrong.
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
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,73 @@ | ||
""" | ||
Core module that contains custom types used in UQTestFuns. | ||
Custom types are used to assist type checker during the code development. | ||
""" | ||
|
||
from typing import List, Union, Optional, Any, Dict, Sequence | ||
from typing_extensions import TypedDict | ||
|
||
from uqtestfuns.core.prob_input.marginal import Marginal | ||
|
||
__all__ = [ | ||
"MarginalSpecs", | ||
"ProbInputSpecs", | ||
"ProbInputArgs", | ||
"FunParamSpecs", | ||
"FunParamsArgs", | ||
"DeclaredParameters", | ||
] | ||
|
||
|
||
class MarginalSpec(TypedDict): | ||
name: str | ||
distribution: str | ||
parameters: List[Union[float, int]] | ||
description: Optional[str] | ||
|
||
|
||
MarginalSpecs = List[MarginalSpec] | ||
|
||
|
||
class ProbInputSpec(TypedDict): | ||
function_id: str | ||
description: str | ||
marginals: List[MarginalSpec] | ||
copulas: Optional[Any] | ||
|
||
|
||
ProbInputSpecs = Dict[str, ProbInputSpec] | ||
|
||
|
||
class ProbInputArgs(TypedDict): | ||
function_id: str | ||
input_id: str | ||
description: str | ||
marginals: Sequence[Marginal] | ||
copulas: Optional[Any] | ||
|
||
|
||
class DeclaredParameter(TypedDict): | ||
keyword: str | ||
value: Any | ||
type: Optional[type] | ||
description: Optional[str] | ||
|
||
|
||
DeclaredParameters = List[DeclaredParameter] | ||
|
||
|
||
class FunParamsSpec(TypedDict): | ||
function_id: str | ||
description: str | ||
declared_parameters: DeclaredParameters | ||
|
||
|
||
FunParamSpecs = Dict[str, FunParamsSpec] | ||
|
||
|
||
class FunParamsArgs(TypedDict): | ||
function_id: str | ||
parameter_id: str | ||
description: str | ||
declared_parameters: DeclaredParameters |
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
Oops, something went wrong.