VDS datasets silently return None
I maintainer di solito rispondono entro 1 giorno
@bnlawrence ci sta già lavorando.
Dal 6/10/2026.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
Start at pyfive.File dataset access and the indexing path used by d[:]; inspect how d.id.layout_class identifies the VDS layout. Reproduce the example with the two source files and vds.h5, then add a regression test confirming VDS indexing raises NotImplementedError or another clear unsupported-operation error instead of returning None.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Opening a dataset with virtual (VDS) layout works. shape and dtype are reported correctly, but indexing it returns None rather than data or an error. This leads on to confusing downstream errors rather than making clear that VDS files are not supported. We hit this while evaluating pyfive as a thread-safe read backend for pynbody. SWIFT cosmological simulations write a single-file "virtual" snapshot made of VDSs over their per-rank files, so every particle dataset in such a snapshot is affected.
We can probably work around this by detecting and handling VDS separately from regular hdf5 files, but it would be helpful if pyfive were to raise NotImplementedError or similar, rather than return None.
To reproduce:
import h5py
import numpy as np
import pyfive
for i in range(2):
with h5py.File(f"src{i}.h5", "w") as f:
f["x"] = np.arange(5) + 10 * i
layout = h5py.VirtualLayout(shape=(10,), dtype="i8")
for i in range(2):
layout[5 * i : 5 * i + 5] = h5py.VirtualSource(f"src{i}.h5", "x", shape=(5,))
with h5py.File("vds.h5", "w") as f:
f.create_virtual_dataset("x", layout)
with h5py.File("vds.h5") as f:
print("h5py: ", f["x"][:])
with pyfive.File("vds.h5") as f:
d = f["x"]
print("pyfive:", d.shape, d.dtype, d.id.layout_class)
print("pyfive:", d[:])
Output:
h5py: [ 0 1 2 3 4 10 11 12 13 14]
pyfive: (10,) int64 3
pyfive: None
- Lingua principale
- Python
- Stelle
- 105
- Fork
- 29
- Merge medio
- 2g 8h
- PR unite (30g)
- 9
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NCAS-CMS/pyfive
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
further optimisationForse già presa @bnlawrence l’ha presa 47 giorni fa. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
I maintainer di solito rispondono entro 1 giorno
-
pyfive and hdf5>=2Apertainstallation
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
NCAS-CMS/pyfive#279 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
difference in check_dtype for vlen compared to h5pyForse di nuovo libera @davidhassell l’ha presa 152 giorni fa e non c’è nessuna pull request aperta. Apertaquestion
NCAS-CMS/pyfive#228 · 13 commenti · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
NCAS-CMS/pyfive#219 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di NCAS-CMS/pyfive
Issue simili
-
eegprep-lean: set channel types from the Zarr group's channel_typeForse già presa @claude l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
sccn/eegprep#668 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Upgrade Django to 5.2.18Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
blacklanternsecurity/bbot#3679 ·
I maintainer di solito rispondono entro 2 giorni
-
Link Checker ReportApertaBot Type: Bug Type: Documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
speakeasy-api/speakeasy#2159 ·
I maintainer di solito rispondono entro 1 giorno