79141431

Date: 2024-10-30 14:09:21
Score: 3
Natty:
Report link

You can try making array2 contiguous, you can call np.ascontiguousarray on it before saving:

array2 = np.ascontiguousarray(array[:,:,[0,1,2,3,4,5]])

It will create a contiguous copy of array2, making saving faster...

You should see a performance improvement in the saving time. cheers

Reasons:
  • Blacklisted phrase (1): cheers
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ciprian Potor