Skip to content

Closes 4520, incorporates where parameter in several functions where it had been missing - #4522

Merged
ajpotts merged 2 commits into
Bears-R-Us:masterfrom
drculhane:Closes-4520
Jun 10, 2025
Merged

ajpotts merged 2 commits into
Bears-R-Us:masterfrom
drculhane:Closes-4520

Conversation

@drculhane

Copy link
Copy Markdown
Contributor

Closes #4520

This adds the where parameter to round, trunc, ceil and floor.

In src/EfuncMsg.chpl, those functions now refer to their input as "x" instead of "pda." This allows us to fold all of them into the helper function that was called _trig_helper, and is now called _trig_hyp_round_helper. It has all the needed code to handle the where parameter.

In arkouda/numpy/numeric.py, those functions now include a where parameter and a descriptive docstring, and call _trig_hyp_round_helper to interface to the server. Their input is called "x" instead of "pda," since that's what the helper function uses.

@1RyanK 1RyanK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

Comment thread arkouda/numpy/numeric.py Resolved
Comment thread arkouda/numpy/numeric.py Resolved
Comment thread arkouda/numpy/numeric.py Resolved
Comment thread arkouda/numpy/numeric.py Resolved
Comment thread arkouda/numpy/numeric.py Resolved
Comment thread arkouda/numpy/numeric.py Resolved
@ajpotts

ajpotts commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

Could you update the title to be more descriptive?

Comment thread arkouda/numpy/numeric.py Resolved
@drculhane drculhane changed the title Closes 4520 Closes 4520, incorporates where parameter in functions round, trunc, ceil and floor Jun 9, 2025
@drculhane drculhane changed the title Closes 4520, incorporates where parameter in functions round, trunc, ceil and floor Closes 4520, incorporates where parameter in several functions where it had been missing Jun 10, 2025
@ajpotts
ajpotts enabled auto-merge June 10, 2025 17:40
@ajpotts
ajpotts added this pull request to the merge queue Jun 10, 2025
Merged via the queue into Bears-R-Us:master with commit 6d81677 Jun 10, 2025
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.

Include where parameter in inputs of floor, trunc, ceil, round

3 participants