dict_to_struct#

dict_to_struct(d)[source]#

Converts a dictionary of numpy arrays to a numpy struct

Parameters:

d (dict) – A dictionary wtih numpy arrays in each key. The arrays must be all the same size.

Returns:

s – A numpy struct with the fields or names take from the dictionary keys

Return type:

numpy struct