Closed mihailbankov closed 7 months ago
At first glance, the test coverage does seem a bit weird. I would suggest making the changes to the main code, which will also require some changes to the tests. If the coverage still looks weird, we can take a closer look then.
I changed the line for isinstance where I put int; On the last line i changed arr to item; Aside from that I think there are no real changes to the code you proposed. The tests were also changed to test the new code.
Thanks for the PR @mihailbankov
Creates the NDCube.squeeze method as described in the issue, similar to the numpy equivalent. This method removes (specified) axis with length 1. Testing for the method is also included. Resolves #616