3 ms·
What I would really like is to type check the shape of a numpy array to prevent dimension array at runtime. You could use third party library like https://githu
by ebonnafoux 1y ago
What I would really like is to type check the shape of a numpy array to prevent dimension array at runtime.
You could use third party library like https://github.com/ramonhagenaars/nptyping https://github.com/ramonhagenaars/nptyping or https://github.com/beartype/beartype#numpy-arrays https://github.com/beartype/beartype#numpy-arrays but it will not extend to the methode of Numpy.
- flhammer 1y agoMaybe you are looking for something like this? https://news.ycombinator.com/item?id=40022628 https://news.ycombinator.com/item?id=40022628 But not sure how far this gets you with regards to the pain points mentioned in this post.