Error on array broadcasting

Open
#131 2 comments 0 reactions 1 assignee View on GitHub

@mattjala is already working on this.

Since Aug 28, 2023.

Assessment

This issue has not been assessed yet.

Description

bug

This code:

import h5pyd

with h5pyd.File('hdf5://home/userme/foo.h5', mode='w') as f:
    x = f.create_dataset('x', shape=(2, 3), dtype='i4')
    x[...] = [[1, 2, 3]]

Produces error: OSError: Expected: 24 bytes, but got: 12. The correct outcome should be for x to store an [[1, 2, 3][1, 2, 3]] array.

Dominant language
Python
Stars
158
Forks
61
Avg merge
4d 17h
Merged PRs (30d)
6

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No 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.

More from HDFGroup/hsds

All issues in HDFGroup/hsds

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.