Repository navigation
Minor code improvements - #4710
Closed
vasslitvinov wants to merge 28 commits into
Closed
vasslitvinov wants to merge 28 commits into
vasslitvinov wants to merge 28 commits into
Conversation
…#4734) This PR removes references to `master` branch and replaces them with `main` throughout the project. Closes Bears-R-Us#4733: Switch branch from master to main Co-authored-by: ajpotts <[email protected]>
vasslitvinov
force-pushed
the
checkpoint-GeneratorSymEntry
branch
from
July 25, 2025 02:03
97de2ff to
3ae0b3e
Compare
) Adds a `doctest` unit test for the `dataframe` module. Closes Bears-R-Us#4254: add doctest to dataframe module Co-authored-by: ajpotts <[email protected]>
…ears-R-Us#4730) Sets a longer timeout for `test_multi_col_merge` when running with ASAN to ensure the test actually finishes Signed-off-by: Jade Abraham <[email protected]>
…dule (Bears-R-Us#4490) Adds `doctest` unit test for the `array_api/utility_functions` module. Closes Bears-R-Us#4306: add doctest to array_api/utility_functions module Co-authored-by: ajpotts <[email protected]>
Adds `doctest` unit tests for the `_version` module. Closes Bears-R-Us#4271: add doctest to _version module Co-authored-by: ajpotts <[email protected]>
) Adds `doctest` unit test for the `infoclass` module. Closes Bears-R-Us#4258: add doctest to infoclass module Co-authored-by: ajpotts <[email protected]>
Adds `doctest` unit tests to the `index` module. Closes Bears-R-Us#4257: add doctest to index module Co-authored-by: ajpotts <[email protected]>
Adds `doctest` unit test to the `io` module. Closes Bears-R-Us#4259: add doctest to io module Co-authored-by: ajpotts <[email protected]>
Adds a docstring for the `dataframe` module. Closes Bears-R-Us#4526 docstring for dataframe module Co-authored-by: ajpotts <[email protected]>
Adds `doctest` unit tests for the `history` module. Closes Bears-R-Us#4256: add doctest to history module Co-authored-by: ajpotts <[email protected]>
Adds a docstring for the `plotting` module. Closes Bears-R-Us#4546: docstring for plotting module Co-authored-by: ajpotts <[email protected]>
Since pdarray.opeq enforces that the dtype of a scalar must match the dtype of the vector, this PR makes similar changes to the server to enforce that. This eliminates ~20 instantiations of `opeqvs` Future work: given that `pdarray.opeq`/`opeqvs` outlaws `vector op= scalar`, can `pdarray._binop`/`pdarray._r_binop`/`binopsv`/`binopvs` do the same? --------- Signed-off-by: Jade Abraham <[email protected]>
Added examples for the `infoclass` module. Also created a `doctest` unit test for the module. Closes Bears-R-Us#4574: infoclass module doctest Co-authored-by: ajpotts <[email protected]>
…ears-R-Us#4731) Previously this used the `.isSorted()` method which is unavailable. Signed-off-by: Shreyas Khandekar <[email protected]>
Refactors `hashArrays` and `hasHelper` to avoid some of the duplicated code. I observed this making a 8% reduction on the generated code size Signed-off-by: Jade Abraham <[email protected]>
Adds doctest unit test the the `client` module. Closes Bears-R-Us#4252: add doctest to client module Co-authored-by: ajpotts <[email protected]>
…Op (Bears-R-Us#4728) This PR makes a few changes to how bitwise and boolean ops are computed in the arkouda server. - Since the order of operands to bitwise ops does not matter, by using a helper function `doBoolBoolBitOp` and only calling it with operands in the same order (always `vector, scalar` or `vector, vector`) we can save some compilation time - The same `Set.set` was being recreated all over the place to determine if an op was an operator. This PR refactors that set into a common place so it does not get instantiated for all the generic combinations. - Makes a similar transformation with `Set.set` for `realOps` I consider this a general cleanup and consolidation of logic in BinOp/OperatorMsg, it also saves a little bit of time while compiling --------- Signed-off-by: Jade Abraham <[email protected]>
Adds a docstring for `groupbyclass`. Closes Bears-R-Us#4532: docstring for groupbyclass Co-authored-by: ajpotts <[email protected]>
Adds a docstring for the `index` module. Closes Bears-R-Us#4538: docstring for index module Co-authored-by: ajpotts <[email protected]>
Adds a `doctest` unit test for the `row` module. Closes Bears-R-Us#4268: add doctest to row module Co-authored-by: ajpotts <[email protected]>
…4541) Adds a docstring for the `matcher` module. Closes Bears-R-Us#4540: docstring for the matcher module Co-authored-by: ajpotts <[email protected]>
Adds a docstring for the `client` module. Closes Bears-R-Us#4542 docstring for client --------- Co-authored-by: ajpotts <[email protected]>
This PR ports recent merged PRs from master to main. --------- Signed-off-by: Jade Abraham <[email protected]> Signed-off-by: Shreyas Khandekar <[email protected]> Co-authored-by: ajpotts <[email protected]> Co-authored-by: Jade Abraham <[email protected]> Co-authored-by: Shreyas Khandekar <[email protected]>
Fixes a bug where empty `Strings` objects could not be instantiated or copied. Closes Bears-R-Us#4725: ak.array for empty strings Co-authored-by: ajpotts <[email protected]>
This will provide a way to test the upcoming changes to ak.find. Modeled after the already existing benchmarks. Closes Bears-R-Us#4743: Create a benchmark for ak.find
Bears-R-Us#4735) Creates `pytest.N` for the size of the benchmark and `pytest.cfg` for the arkouda configuration map for `benchmark_v2/conftest.py`. Closes Bears-R-Us#4704: Create a pytest.N for benchmark_v2/conftest.py Bears-R-Us#4701: Add pytest.ak_config to benchmark_v2 Co-authored-by: ajpotts <[email protected]>
Signed-off-by: Vassily Litvinov <[email protected]>
vasslitvinov
force-pushed
the
checkpoint-GeneratorSymEntry
branch
from
July 29, 2025 17:03
3ae0b3e to
2e94131
Compare
Signed-off-by: Vassily Litvinov <[email protected]>
vasslitvinov
force-pushed
the
checkpoint-GeneratorSymEntry
branch
from
July 29, 2025 18:48
4e04ae5 to
d950768
Compare
Contributor
Author
|
Moved to #4752 due to 'master' -> 'main' rename that invalidates this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR initially added checkpointing of
GeneratorSymEntry. However during testing I realized that, while checkpointing per se works, restoring from a checkpoint does not "roll back" Arkouda properly. This is because part of the Generator state, specifically itsstatefield, is stored in the client and not on the server. Therefore I am backing out this checkpointing addition.See #4709 for discussion on this.
This PR now contains minor code cleanups that I did while working on GeneratorSymEntry checkpointing.
User-facing: adds
ak.get_registration_config(); populates a Generator in the client with GeneratorSymEntry instances on the server only for those types that are requested inregistration-config.json.