Sequence

class ase2sprkkr.common.grammar_types.arrays.Sequence(*types, format='', format_all=False, allowed_values=None, default_values=False, names=None, as_list=False, **kwargs)[source]

A sequence of values of given types

Class hierarchy

Inheritance diagram of ase2sprkkr.common.grammar_types.arrays.Sequence


Constructor

__init__(*types, format='', format_all=False, allowed_values=None, default_values=False, names=None, as_list=False, **kwargs)[source]
array_access = True

The value of this type can be accessed as array

property value_type
value_constructor(*values)[source]
_grammar(param_name=False)[source]
_validate(value, why='set')[source]
convert(value)[source]
grammar_name()[source]
_string(val)[source]
_option_index(key)[source]
get_option_index(option, key)[source]
set_option_index(option, key, value)[source]
option_attribute_index(name)[source]
static is_the_same_value(a, b)

The numpy arrays cannot be compared by =, that’s why this method. However, the method is still far from to be perfect, it can not compare nested numpy arrays.