rotate_dict#
- stimupy.utils.rotate_dict(dct, nrots=1, keys=('img', '*mask'))#
Return a dict with key-arrays rotated by nrots*90 degrees.
- Parameters:
- Returns:
same as input dict but with rotated key-arrays and updated keys for “visual_size” and “shape”
- Return type: