alternative_types

Full name: ase2sprkkr.common.alternative_types

Description

This module contains helper functions and data to deal with the problem, that numpy arrays contains their own datatypes and thus e.g. an int may not be what it seems

Module Attributes

types_alternatives

Map of types and sets of alternative types

normalize_type_map

Mapping of alternative types to the 'canonical ones'.

allowed_types

All types, that are allowed for a given type.

Functions

normalize_type(type)

Return the 'canonical type' for a given type.