sidpy.hdf.dtype_utilsΒΆ
Utilities for transforming and validating data types
Given that many of the data transformations involve copying the data, they should ideally happen in a lazy manner to avoid memory issues.
Created on Tue Nov 3 21:14:25 2015
@author: Suhas Somnath, Chris Smith
Functions
Checks the datatype of the input HDF5 dataset and provides the appropriate function calls to convert it to a float |
|
Stacks the real values followed by the imaginary values in the last dimension of the given N dimensional matrix. |
|
Flattens the individual components in a structured array or compound valued hdf5 dataset along the last axis to form a real valued array. |
|
Flattens complex / compound / real valued arrays to real valued arrays |
|
Returns a dictionary of the dtypes of each of the fields in the given structured array dtype |
|
Checks if the provided dtype is a complex dtype |
|
Puts the real and imaginary sections of the provided matrix (in the last axis) together to make complex matrix |
|
Converts a real-valued dataset to a compound dataset (along the last axis) of the provided compound d-type |
|
Transforms real data into the target dtype |
|
Checks the provided object to ensure that it is a valid dtype that can be written to an HDF5 file. |