Closed danielpmorton closed 1 year ago
Hi @danielpmorton ,
thanks for your contribution. It would be great if you could also add unit tests that check these cases here.
I also changed the pull request to the branch develop-3, which will be merged to master as soon as I release version 3.0.0.
Done! Added the test cases. The first three are really the only ones that were giving an issue, but I added similar tests and made the same changes to the other functions in Coordinates for consistency. I also rebased the branch on develop-3
Thanks a lot!
Certain functions in the Coordinates package result in incorrect transformations when the inputs are integer arrays, rather than float arrays. Below are a few examples of some invalid results that can be fixed with a conversion
This issue seems to be limited to the functions in the Coordinates package that used np.arctan2, but you may want to consider checking some of your other functions too. I did not seem to notice the issue with the other functions in Coordinates.