Skip to content

Closes 3990 - aligns ak.arange to np.arange - #4116

Merged
ajpotts merged 1 commit into
Bears-R-Us:masterfrom
drculhane:Closes-3990-Updated
Feb 27, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
drculhane:Closes-3990-Updated

Conversation

@drculhane

@drculhane drculhane commented Feb 26, 2025 •

Copy link
Copy Markdown
Contributor

Closes #3990

The main feature of this is a change inside def arange in pdarraycreation.py. The purpose of the change is to make ak.arange return empty arrays when np.arange does. There was a problem with bigint, which is explained in a lengthy comment in def arange.

A few other minor changes in pdarray_creation_test.py:

  • one function did an internal import numpy as np, but that's already at the top of the file. So I removed the extra one.
  • many of my functions had from arkouda.util import _generate_test_shape. I removed those, and put the import at the top of the file.
  • similarly with from arkouda.util import _infer_shape_from_size.

@drculhane
drculhane marked this pull request as ready for review February 26, 2025 15:47
@drculhane drculhane changed the title Closes 3990 Closes 3990 - aligns ak.arange to np.arange Feb 26, 2025

@jaketrookman jaketrookman 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

@ajpotts
ajpotts added this pull request to the merge queue Feb 26, 2025
Merged via the queue into Bears-R-Us:master with commit a91e0e4 Feb 27, 2025
@drculhane
drculhane deleted the Closes-3990-Updated branch March 15, 2025 13:29
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.

Align ak.arange to its numpy counterpart

4 participants