2.2. czekitout.convert
Contains functions that facilitate type-conversions with useful error messages when exceptions are thrown.
Functions
Convert input object to a bool. |
|
Convert input object to a boolean 3D numpy array. |
|
Convert input object to a boolean 2D numpy array. |
|
Convert input object to a complex-valued numpy array. |
|
Convert input object to a complex-valued numpy array. |
|
Convert input object to an instance of the class dict. |
|
Convert input object to a float. |
|
Convert input object to an int. |
|
Convert input object to a list of booleans. |
|
Convert input object to a list of floating-point numbers. |
|
Convert input object to a list of int objects. |
|
Convert input object to a list of nonnegative floating-point numbers. |
|
Convert input object to a list of nonnegative integers. |
|
Convert input object to a list of positive floating-point numbers. |
|
Convert input object to a list of positive integers. |
|
Convert input object to a list of strings. |
|
Convert a multi-dimensional slice-like input object to a multi-dimensional slice object. |
|
Convert input object to a nonnegative float. |
|
Convert input object to a nonnegative int. |
|
Convert input object to a nonnegative numpy array. |
|
Convert input object to a nonnegative numpy matrix. |
|
Convert input object to a numpy array. |
|
Convert input object to a two-element tuple of float objects. |
|
Convert input object to a two-element tuple of int objects. |
|
Convert input object to a two-element tuple of nonnegative float objects. |
|
Convert input object to a two-element tuple of non-negative int objects. |
|
Convert input object to a two-element tuple of positive float objects. |
|
Convert input object to a two-element tuple of positive int objects. |
|
Convert input object to a tuple of two-element tuples of float objects. |
|
Convert input object to a tuple of two-element tuples of int objects. |
|
Convert input object to a tuple of two-element tuples of nonnegative integers. |
|
Convert input object to a positive float. |
|
Convert input object to a positive int. |
|
Convert input object to a four-element tuple of non-negative int objects. |
|
Convert input object to a four-element tuple of positive float objects. |
|
Convert input object to a real-valued numpy array. |
|
Convert input object to a real-valued 1D numpy array. |
|
Convert input object to a real-valued 3D numpy array. |
|
Convert input object to a real-valued numpy array. |
|
Convert input object to a real-valued 2D two-column numpy array. |
|
Convert a one-dimensional slice-like input object to a one-dimensional slice object. |
|
Convert string-like input object to an instance of the class str. |
|
Convert input object to a tuple of booleans. |
|
Convert input object to a tuple of floating-point numbers. |
|
Convert input object to a tuple of int objects. |
|
Convert input object to a tuple of nonnegative floating-point numbers. |
|
Convert input object to a tuple of nonnegative integers. |
|
Convert input object to a tuple of positive floating-point numbers. |
|
Convert input object to a tuple of positive integers. |
|
Convert input object to a tuple of strings. |