Blosc / Blosc/python-blosc2

Add subclass for decompressed arrays

Open
#464 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
211
Forks
58
Avg merge
1d 17h
Merged PRs (30d)
6

Description

Following [this comment](https://github.com/data-apis/array-api/discussions/968#discussioncomment-14350012), add a thinly wrapped native Blosc2 class for decompressed arrays, which are currently just plain NumPy arrays. Would have to support certain additional operations and comparisons (``==``, ``__array_namespace__()``), but it will inherit most of the useful machinery directly from NumPy.

Would have to change ``np.empty`` references for loading slices etc. from C functions in the code base, possibly some other things.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how decompressed arrays are created and where C functions use np.empty when loading slices. Review the existing native Blosc2 and NumPy array machinery before defining the subclass behavior. Done means decompressed arrays support ==, __array_namespace__(), the required additional operations and comparisons, with affected loading paths updated.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.