Skip to content

Adds special cases to ak.linspace#5378

Merged
ajpotts merged 3 commits intoBears-R-Us:mainfrom
drculhane:Closes-5267
Feb 4, 2026
Merged

Adds special cases to ak.linspace#5378
ajpotts merged 3 commits intoBears-R-Us:mainfrom
drculhane:Closes-5267

Conversation

@drculhane
Copy link
Contributor

Closes #5267

The proposed fix required slight editing: changing uses of ak.float64 to just float64 (since pdarraycreation.py already imports it by that name), and changing uses of ak.array to just array (since that function is within this file).

Also added a unit test for these cases. It isn't parameterized by data type, which is a judgment call, since imo, that wouldn't add anything. But it would be simple to add, if the team so chooses.

@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@c235a25). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #5378   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         5           
  Lines           ?       115           
  Branches        ?         0           
========================================
  Hits            ?       115           
  Misses          ?         0           
  Partials        ?         0           
Flag Coverage Δ
python-coverage 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@ajpotts ajpotts left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this one!

@ajpotts ajpotts added this pull request to the merge queue Feb 4, 2026
Merged via the queue into Bears-R-Us:main with commit 93d7e5d Feb 4, 2026
22 checks passed
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.

Bug: ak.linspace Fails for num == 1 (Scalar Case)

2 participants