struct_to_dict#

struct_to_dict(s)[source]#

Converts a numpy struct array into a dictionary using the struct labels as keys

Parameters:

s (numpy struct) – The struct array

Returns:

d – A dictionary with the struct labels or fields as the keys

Return type:

dict