Real
- class ase2sprkkr.common.grammar_types.Real(prefix=None, postfix=None, format='', default_value=None, condition=None, after_convert=None, description='', min=None, max=None)[source]
A real value
Class hierarchy
Constructor
- Parameters
prefix (Optional[str]) –
postfix (Optional[str]) –
format (str) –
default_value (Any) –
condition (Optional[Callable[[Any], Union[bool, str]]]) –
after_convert (Optional[Callable[[Any], Any]]) –
min (Optional[int]) –
max (Optional[int]) –
- __init__(prefix=None, postfix=None, format='', default_value=None, condition=None, after_convert=None, description='', min=None, max=None)
- Parameters
min (Optional[int]) – Minimal allowed value.
max (Optional[int]) – Maximal allowed value.
prefix (Optional[str]) –
postfix (Optional[str]) –
format (str) –
default_value (Any) –
condition (Optional[Callable[[Any], Union[bool, str]]]) –
after_convert (Optional[Callable[[Any], Any]]) –
- _grammar = fnumber
- Parameters
name (str) –
- Return type
ParserElement
- grammar_name()[source]
Human readable expression of the grammar. By default, this is what is set by grammar.setName, however, sometimes is desirable to set even shorter string
- numpy_type
alias of
float
- I = <Real>
- allowed_types = (<class 'numpy.float64'>, <class 'float'>)
- datatype
alias of
float