scinumtools.dip.datatypes package

Submodules

scinumtools.dip.datatypes.type module

class scinumtools.dip.datatypes.type.Type(value: str = None, unit: str = None)

Bases: object

copy()

Copy a new object from self

unit: str = None
value: str = None

scinumtools.dip.datatypes.type_boolean module

class scinumtools.dip.datatypes.type_boolean.BooleanType(value, **kwargs)

Bases: Type

dtype

alias of bool

logical_and(other)
logical_not()
logical_or(other)

scinumtools.dip.datatypes.type_float module

class scinumtools.dip.datatypes.type_float.FloatType(value, unit=None, **kwargs)

Bases: NumberType

dtype

alias of float

precision: int = 64

scinumtools.dip.datatypes.type_integer module

class scinumtools.dip.datatypes.type_integer.IntegerType(value, unit=None, **kwargs)

Bases: NumberType

dtype

alias of int

precision: int = 32
unsigned: bool = False

scinumtools.dip.datatypes.type_number module

class scinumtools.dip.datatypes.type_number.NumberType(value: str | None = None, unit: str | None = None)

Bases: Type

convert(unit, env=None)

Convert units of this type

dtype = None
typename: str = 'number'

scinumtools.dip.datatypes.type_string module

class scinumtools.dip.datatypes.type_string.StringType(value, **kwargs)

Bases: Type

dtype

alias of str

Module contents