arrays_to_checksum

arrays_to_checksum#

stimupy.utils.export.arrays_to_checksum(stim, keys=['img', 'mask'])#

Hash (md5) values of arrays specified in keys, and save only the hex

Parameters:
  • stim (dict) – stimulus dictionary to export.

  • keys (str of list of str) – keys of dict for which the hashing should be performed

Returns:

same as input dict but keys now only contain the hex

Return type:

dict[str, Any]