Skip to content

Closes #5346: Make pdarray.copy() work for uint8 - #5348

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:5346_Make_pdarray.copy_work_for_sub-64-bit
Jan 27, 2026
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:5346_Make_pdarray.copy_work_for_sub-64-bit

Conversation

@ajpotts

@ajpotts ajpotts commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR makes two small but useful improvements:

  1. GenSymIO deepcopy now supports all element types
    Removes the restrictive where clause so deepcopy works for any array element type t.

  2. Add uint8 coverage for pdarray.copy() tests
    Extends the dtype parametrization in test_copy and test_copy_multidim to include ak.uint8.

Changes

  • src/GenSymIO.chpl
    • Remove dtype restriction on deepcopy.
  • tests/numpy/pdarrayclass_test.py
    • Import uint8; include it in dtype parametrization for copy tests.

Why

  • deepcopy should behave like a generic utility for distributed arrays, not only a handful of primitive types.
  • uint8 is a common dtype and should be covered by copy semantics tests.
  • Using warnings instead of printing makes failure context more visible and consistent in automated test environments.

Closes #5346: Make pdarray.copy() work for uint8

@ajpotts
ajpotts marked this pull request as ready for review January 27, 2026 15:35
@ajpotts
ajpotts force-pushed the 5346_Make_pdarray.copy_work_for_sub-64-bit branch from 785de1f to 2c9c659 Compare January 27, 2026 15:36
@ajpotts
ajpotts force-pushed the 5346_Make_pdarray.copy_work_for_sub-64-bit branch from 2c9c659 to a5d9037 Compare January 27, 2026 15:37

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

@codecov

codecov Bot commented Jan 27, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #5348   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         5           
  Lines           ?       109           
  Branches        ?         0           
========================================
  Hits            ?       109           
  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.

@ajpotts
ajpotts added this pull request to the merge queue Jan 27, 2026
Merged via the queue into Bears-R-Us:main with commit 620a0e7 Jan 27, 2026
24 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.

Make pdarray.copy() work for uint8

3 participants