Skip to content

refactor argTypeReductionMessage - #3834

Closed
ajpotts wants to merge 1 commit into
Bears-R-Us:masterfrom
ajpotts:3716-Remove-@arkouda.registerND-from-RegistrationMsg.chpl-argTypeReductionMessage-2
Closed

ajpotts wants to merge 1 commit into
Bears-R-Us:masterfrom
ajpotts:3716-Remove-@arkouda.registerND-from-RegistrationMsg.chpl-argTypeReductionMessage-2

Conversation

@ajpotts

@ajpotts ajpotts commented Oct 10, 2024 •

Copy link
Copy Markdown
Contributor

This PR refactors argTypeReductionMessage to remove @arkouda.registerND. sum, prod, min, and max are separated into distinct functions. Also, the axis argument is added to sum, prod, min and max in pdarrayclass.py, and corresponding unit tests are added.

@ajpotts
ajpotts force-pushed the 3716-Remove-@arkouda.registerND-from-RegistrationMsg.chpl-argTypeReductionMessage-2 branch from 78c5c30 to 484d411 Compare October 10, 2024 23:26
@ajpotts
ajpotts marked this pull request as ready for review October 10, 2024 23:33
@ajpotts
ajpotts force-pushed the 3716-Remove-@arkouda.registerND-from-RegistrationMsg.chpl-argTypeReductionMessage-2 branch from 484d411 to a784f26 Compare October 11, 2024 00:50
@ajpotts
ajpotts marked this pull request as draft October 11, 2024 13:54
@ajpotts

ajpotts commented Oct 11, 2024

Copy link
Copy Markdown
Contributor Author

Here's a ticket to add a keepdims argument like numpy : #3836

@jeremiah-corrado jeremiah-corrado 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!

One suggestion, perhaps for a future PR, I think the axis argument could be replaced with a list(int) to avoid the axis.rank == 1 checks and extra instantiations.

Comment thread tests/client_test.py Resolved
@ajpotts
ajpotts force-pushed the 3716-Remove-@arkouda.registerND-from-RegistrationMsg.chpl-argTypeReductionMessage-2 branch from 40d4f15 to f4b1c87 Compare October 11, 2024 15:23
@ajpotts

ajpotts commented Oct 11, 2024

Copy link
Copy Markdown
Contributor Author

Created a new ticket for @jeremiah-corrado suggestion: #3837

@ajpotts
ajpotts force-pushed the 3716-Remove-@arkouda.registerND-from-RegistrationMsg.chpl-argTypeReductionMessage-2 branch from f4b1c87 to 2270353 Compare October 11, 2024 15:27
@ajpotts
ajpotts marked this pull request as ready for review October 11, 2024 15:32
@stress-tess
stress-tess enabled auto-merge October 11, 2024 16:06
@ajpotts
ajpotts force-pushed the 3716-Remove-@arkouda.registerND-from-RegistrationMsg.chpl-argTypeReductionMessage-2 branch 2 times, most recently from 5909e32 to c976d48 Compare October 16, 2024 17:51
@ajpotts

ajpotts commented Oct 23, 2024

Copy link
Copy Markdown
Contributor Author

Completed in #3854

@ajpotts ajpotts closed this Oct 23, 2024
auto-merge was automatically disabled October 23, 2024 19:39

Pull request was closed

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.

4 participants