Skip to content

Comments

Restore default behavior of rowcol(), returning ints#3219

Merged
sgillies merged 2 commits intomaint-1.4from
issue3201b
Oct 28, 2024
Merged

Restore default behavior of rowcol(), returning ints#3219
sgillies merged 2 commits intomaint-1.4from
issue3201b

Conversation

@sgillies
Copy link
Member

@sgillies sgillies commented Oct 28, 2024

The change was caused by replacing math.floor() (given floats, returns ints) with numpy.floor() (returns floats).

@sgillies sgillies self-assigned this Oct 28, 2024
@sgillies sgillies changed the base branch from main to maint-1.4 October 28, 2024 02:46
y,
z=None,
op=np.floor,
op=None,
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a pass-through argument, the default is handled where needed.

xs,
ys,
zs=None,
op=None,
Copy link
Member Author

Choose a reason for hiding this comment

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

pass-through again.

)

if isinstance(op, np.ufunc):
if op is None:
Copy link
Member Author

Choose a reason for hiding this comment

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

Here is where the default behavior is defined.

Copy link
Member

@snowman2 snowman2 left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@vincentsarago vincentsarago self-requested a review October 28, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants