eodal.core.utils package

eodal.core.utils.get_highest_dtype(dtype_list: list[dtype | str]) dtype | str[source]

Get the highest data type of a list of data types based on the data types ranks defined by numpy

Parameters:

dtype_list – list of data types

Returns:

higest data type in its numpy.dtype or string representation

eodal.core.utils.get_rank(dtype: dtype | str) int[source]

Get the rank of a data type

Parameters:

dtype – data type for which to get the rank.

Returns:

rank of dtype as defined by numpy.

Submodules