Alain Leufroy <alain.leufroy@logilab.fr> [Mon, 08 Apr 2013 09:39:49 +0200] rev 63
[copyright] change email to contact@logilab.fr
alain leufroy <alain@leufroy.fr> [Sun, 31 Mar 2013 00:16:42 +0100] rev 62
fix traceback on calling --help
... because the parser does not exit on querying help.
alain leufroy <alain@leufroy.fr> [Wed, 03 Apr 2013 11:09:48 +0200] rev 61
refact: split h5fs.py into modules in the ``h5fslib`` package
This changeset just moves codes.
..note: This change simplify the implementation of other export
formats as core specific code is more identifiable.
alain leufroy <alain@leufroy.fr> [Mon, 08 Apr 2013 10:20:00 +0200] rev 60
add documentation about bin/h5fs that is used to produce a manpage
alain leufroy <alain@leufroy.fr> [Sat, 30 Mar 2013 02:52:36 +0100] rev 56
add debian/ to build .deb package
The following package are needed:
- devscripts,
- python-all-dev,
- python-stdeb,
- fuse (>= 2.9.2),
- python-fuse (>= 2:0.2.1)
To build the package::
$ debuild
$ litian -i ...
$ ...
More information at:
http://docs.python.org/2/distutils/sourcedist.html
alain leufroy <alain@leufroy.fr> [Fri, 29 Mar 2013 23:14:55 +0100] rev 55
add license
alain leufroy <alain@leufroy.fr> [Fri, 29 Mar 2013 23:49:20 +0100] rev 54
add a README that describe the project.
alain leufroy <alain@leufroy.fr> [Thu, 04 Apr 2013 14:01:04 +0200] rev 53
add setup.py
alain leufroy <alain@leufroy.fr> [Fri, 29 Mar 2013 21:56:14 +0100] rev 29
add an executable script
alain leufroy <alain@leufroy.fr> [Fri, 29 Mar 2013 03:15:18 +0100] rev 28
datasets are now exported as .npy file format 1.0
Here is an example of usage::
$ mkdir /tmp/imageb/
$ python h5fs.py test/data/ex_image1.h5 /tmp/image/
$ tree /tmp/image/
/tmp/image
├── image1.npy
└── pallete.npy
0 directories, 2 files
$ python
>>> import numpy
>>> arr = numpy.load('/tmp/image/image1.npy')
>>> arr.shape
(200, 400, 1)
>>> arr[::10, 10, :].T
array([[0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8]], dtype=uint8)
>>> exit()
$ fusermount -u /tmp/image
alain leufroy <alain@leufroy.fr> [Tue, 02 Apr 2013 18:27:47 +0200] rev 27
fix some docstrings and comments
alain leufroy <alain@leufroy.fr> [Thu, 28 Mar 2013 23:43:43 +0100] rev 16
refact: set a better name to the main function
Alain Leufroy <alain.leufroy@logilab.fr> [Fri, 13 Apr 2012 21:06:08 +0200] rev 15
Add read capability: raw flatten array data of DataSets can be read
::
$ mkdir /tmp/image
$ python h5fs.py test/data/ex_image1.h5 /tmp/image
$ echo 'Let see the FS '
$ tree /tmp/image
/tmp/image/
|-- image1
`-- pallete
0 directories, 2 files
$ ls -lah /tmp/image/image1
-r-------- 1 alain users 79K Jan 1 1970 /tmp/image/image
$ echo 'Here what we can do'
$ python
>>> f = open('/tmp/image/image1')
>>> f.seek(0, 2)
>>> print f.tell()/1024.
78.125
>>> import struct
>>> f.seek(0)
>>> data = struct.unpack('80000B', f.read())
>>> len(data)
80000
>>> import numpy
>>> f.seek(0)
>>> arr = numpy.empty((50, 16, 20, 5), dtype='|u1')
>>> f.readinto(arr.data)
80000
>>> arr[::8,2,5,2]
array([0, 1, 2, 4, 5, 7, 8], dtype=uint8)
>>> exit()
$ echo 'It was funny, now terminate all.'
$ fusermount -u /tmp/image
$ rm -r /tmp/image
$ echo 'it is all folk!'
Alain Leufroy <alain.leufroy@logilab.fr> [Tue, 02 Apr 2013 12:21:13 +0200] rev 14
refactorization
- separate fs specific code to hdf5 specific codes
- user better names
- use generators instead of list
- move functions to class method as they should be overwriten for future implementations
Alain Leufroy <alain.leufroy@logilab.fr> [Tue, 03 Apr 2012 20:34:00 +0200] rev 0
minimal implementation: allow to display the data tree
::
python h5fs.py path/to/hdf5file.hdf5 /path/to/mountpoint
tree /path/to/mountpoint