Comments (3)
I am not sure that this is something we want to support as it is doing an implicit reshape as part of the read. I would expect:
return F[array_group][:][:,np.newaxis,:,:]
would would and I think is clearer ("Please read the whole data set" and then "please resahpe it by sticking an extra axis in").
from h5py.
I agree. I wonder if we should check for None
earlier (e.g. in __getitem__
) and raise a more helpful error?
from h5py.
@aragilar I don't really see how to improve the current message. Admittedly it may not be obvious to every user that np.newaxis
is an alias to None
, which might cause some confusion, but I don't think we can distinguish the two variables at runtime (precisely because they're really the same object). Maybe we could special case None
so that np.newaxis
in mentionned in the error message ?
from h5py.
Related Issues (20)
- Initializing dataset with vlen data HOT 1
- Difficulty in Determining Format for Datatypes Associated with Compound Dataset HOT 2
- External link files are opened with file locking enabled even if main file is opened with locking disabled
- Safer access to HDF5 attributes HOT 6
- h5py issue with libhdf5 1.14.4 compiled without float16 support HOT 2
- 2D Dataset Problem HOT 2
- Link broken in README HOT 2
- h5py error with OneAPiIntel HOT 2
- Use of IF in Cython is deprecated HOT 5
- Broken Links on the documentation HOT 3
- Memory leak when updating attrs in newly created group HOT 6
- Failed building wheel for h5py HOT 1
- Problems with h5py wheel and usage of HDF5 dimension scales HOT 9
- Closing a file does not close external links HOT 5
- manylinux aarch64 wheels missing for h5py v3.11 HOT 7
- With numpy 2 (and h5py 3.11) all integers get written as np.int64 and it breaks things. HOT 7
- Using h5py with Amazon Lambda/Linux HOT 9
- need solve problem while run buildozer android debug (Cython Installation error) HOT 4
- Add option to never write fill value via the high-level dataset creation interface
- "Relative import error in h5py files.py: Cannot import filename_decode and filename_encode" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h5py.