Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: fix non integer shape #1253

Merged
merged 2 commits into from
May 23, 2024
Merged

Conversation

homosapien-lcy
Copy link

After previous python updates, division no longer yields integer type, this has caused problems such as in #1244. This PR is aiming to fix this by add integer castings. closes #1244

Copy link
Member

@prabhuramachandran prabhuramachandran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I think it would be nicer to use pts.size//3, 3 rather than an explicit cast to an int.

Make suggested fixes.
@prabhuramachandran
Copy link
Member

I've made the changes myself so this can be merged.

Copy link
Member

@prabhuramachandran prabhuramachandran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@prabhuramachandran prabhuramachandran merged commit c95f140 into master May 23, 2024
11 checks passed
@prabhuramachandran prabhuramachandran deleted the fix_non_integer_shape branch May 23, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants