Type object

class ibidas.itypes.rtypes.Type

Base type class. Represents the type of a data structure.

classmethod commonType(type1, type2)

Returns a common supertype for type1 and type2

copy()

Returns copy of this type

classmethod getDescendantTypes()

Returns descendant type classes as list

Return type:list of descendant type classes
getName()

Returns base type name

getSubType(subtype_id=0)

Returns subtype if this is a non-scalar type. Otherwise, raises TypeError. If subtype_id invalid, raised IndexError.

Parameters:subtype_id – id of subtype, default 0. Should be >= 0 and < getSubTypeNumber().
Return type:obj of class Type
getSubTypeNumber()

Returns number of subtypes of this type

hasMissing()
hasMissingValInfo()
has_missing = True
name = '?'
toDefval()

Returns default value.

toMissingval()
toNumpy()

Returns numpy dtype compatible with this type

Return type:numpy dtype
toScalar()

Returns numpy scalar classs compatible with this type

Return type:numpy scalar class

Previous topic

Representor object

Next topic

Pre-defined sources reference

This Page