You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-20Lines changed: 21 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# OMX Python API Documentation
2
2
3
-
The Python OMX API borrows heavily from PyTables. An OMX file extends the equivalent PyTables File object, so anything you can do in PyTables you can do with OMX as well. This API attempts to be very Pythonic, including dictionary-style lookup of matrix names.
3
+
The Python OMX API is built on top of h5py. An OMX file extends the equivalent h5py File object, so anything you can do in h5py you can do with OMX as well. This API attempts to be very Pythonic, including dictionary-style lookup of matrix names.
4
4
5
5
*[Pre-requisites](#pre-requisites)
6
6
*[Installation](#installation)
@@ -12,7 +12,7 @@ The Python OMX API borrows heavily from PyTables. An OMX file extends the equiva
12
12
13
13
# Pre-requisites
14
14
15
-
Python 3.10+, h5py 3.0+, and NumPy.
15
+
Python 3.9+, h5py 2.10+, and NumPy.
16
16
17
17
Binaries for all these dependencies are readily available from PyPI and can be installed via pip.
18
18
@@ -153,15 +153,14 @@ will call createMatrix() for you and populate it with the specified array.
153
153
154
154
### Accessing Data
155
155
156
-
You can access matrix objects by name, using dictionary lookup e.g. `myfile['hwydist']` or using PyTables path notation, e.g. `myfile.root.hwydist`
156
+
You can access matrix objects by name, using dictionary lookup e.g. `myfile['hwydist']`.
157
157
158
158
### Matrix objects
159
159
160
-
OMX matrices extend numpy arrays. An OMX matrix object extends a Pytables/HDF5 "node" which means all HDF5 methods and properties behave normally. Generally these datasets are going to be numpy CArray objects of arbitrary shape.
160
+
OMX matrices are h5py Dataset objects. An OMX matrix object extends an h5py Dataset which means all h5py methods and properties behave normally.
161
161
You can access a matrix object by name using:
162
162
163
163
* dictionary syntax, e.g. `myfile['hwydist']`
164
-
* or by Pytables path syntax, e.g. `myfile.root.hwydist`
165
164
166
165
Once you have a matrix object, you can perform normal numpy math on it or you can access rows and columns pythonically:
167
166
@@ -207,7 +206,7 @@ OMX module version string. Currently '0.3.5' as of this writing. This is the Py
207
206
### `__omx_version__`
208
207
OMX file format version. Currently '0.2'. This is the OMX file format specification that omx-python adheres to.
0 commit comments