misc

Full name: ase2sprkkr.common.misc

Module class hierarchy

Inheritance diagram of ase2sprkkr.common.misc.OrderedDict

Description

Various classes and routines used thorough the package

Functions

as_integer(value)

Interpret the value as integer, or raise (even for float, complex etc.) TypeError.i >>> as_integer(4) 4 >>> as_integer(np.int64(4)) 4 >>> as_integer(4.0) Traceback (most recent call last): .

copy_list(src)

Copy list of objects.

njit(fce)

Mock the numba JIT compiler, if it is not available

numpy_index(array, item)

Returns index of the first occurence of the item in the array If numba is installed, the function is accelerated.

Classes

OrderedDict