79489732

Date: 2025-03-06 14:53:44
Score: 1.5
Natty:
Report link

This doesn't actually fix the problem but is a work around. Instead of:

data = np.fromfile(filepath,dtype=np.uint8)

I replaced it with:

with open(filepath, 'rb') as file:
    data = array.array('B',file.read())
data = np.array(data)

Now I can run the script without without error and without using F9.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jerod Lake