grammar_types
Full name: ase2sprkkr.common.grammar_types
Module class hierarchy

Description
Classes, that represents various value types that can appear in the configuration and problem definitionfiles.
Each grammar type can both parse string containing a value of a given type, and to create the string containing a given value.
Module Attributes
A standard grammar type instance for (signed) integers |
|
A standard grammar type instance for unsigned integers |
|
A standard grammar type instance for booleans in potential files |
|
A standard grammar type instance for booleans in input files |
|
A standard grammar type instance for reals |
|
A standard instance for the grammar type for dates |
|
A standard grammar type instance for strings |
|
A standard grammar type instance for quoted strings in input files |
|
A standard grammar type instance for one-line strings in potential files |
|
A standard grammar type instance for energy values (float) for potential files |
|
A standard grammar type instance for complex numbers |
|
A standard grammar type instance for array of integers (of any length, used by variant types) |
|
A standard grammar type instance for array of reals (of any length, used by variant types) |
|
A standard grammar type instance for separators in potential files |
|
A standard grammar type instance for variant (mixed) in input files |
|
A standard grammar type instance for variant (mixed) values in potential files |
|
The standard grammar_types for python types. |
|
The types, that are recognized as 'list of values' and so that will be accepted as values for array_like type (e.g. |
|
Map the python type of a collection member to a grammar type of the collection. |
Functions
|
A value, that can take values from the predefined set of strings, the first one is the default value. |
|
The numpy arrays cannot be compared by =, that's why this method. |
|
Returns the format appropriate to the given type |
|
Guess the grammar type from a value, that will become the default value of the grammar type. |
|
Guess and return the grammar element (GrammarType class descendatnt) from a python type. |
|
Gues the grammar type from a python value. |
Classes
|
A (numpy) array of values of one type |
|
A variant type - it can hold "anything". |
|
The base class for float value, which can have units append. |
|
Base type for string grammar types |
|
A bool type, whose value is represented by a letter (T or F) |
|
|
|
A date value of the form 'DD.MM.YYYY' |
|
The grammar type for energy. |
|
A boolean value, which is True, if a name of the value appears in the input file. |
|
Base class for definition of configuration option types |
|
Signed integer |
|
A value, that can take values from the predefined set of strings. |
|
A string, that takes all up to the end of the line |
|
A variant value to be used in input files (in unknown - custom - options) |
|
Base class for a number - descendants of this class can have minimal and/or maximal possible value. |
|
An abstract class, that describe an unsigned integer, that reffers to an object. |
|
A variant value to be used in potential files (in unknown - custom - options) |
|
Either a quoted string, or just a word (without whitespaces or special chars) |
|
A range type - it accepts either one value or range of two values of a given type. |
|
A real value |
|
A float value with user-defined units |
|
Special class for |
|
A sequence of values of given types |
|
Set of values of the same type. |
|
Just a string (without whitespaces and few special chars) |
|
Table, optionaly with named columns, e.g. |
|
|
|
Unsigned integer (zero is possible) |