rnag / rnag/dataclass-wizard

Numpy ndarray compatibility

Open
#71 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

acknowledged enhancement Great To Have! help wanted
Dominant language
Python
Stars
250
Forks
36
PR merge metrics
No merged PRs in 30d

Description

  • Dataclass Wizard version: 0.22.1
  • Python version: Python 3.10.4
  • Operating System: Pop!_OS 22.04 LTS
Description

Creating a dataclass that has a numpy array field is not supported. Could this be added? Or maybe a generic way to include something into the data class to act as a hanlder for saving/loading.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported failure with a dataclass containing a numpy ndarray field under Python 3.10.4. Define whether the goal is direct ndarray serialization and deserialization or a generic handler mechanism, then add coverage showing the chosen behavior works end to end.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.