Metadata-Version: 1.1
Name: pydons
Version: 0.1.0
Summary: Python data manimulation add-ons
Home-page: https://bitbucket.org/urbanj/pydons
Author: Jakub Urban
Author-email: coobas at gmail dt com
License: MIT
Description: Pydons is a collection of numerical data manipulation add-ons.
        
        MatStruct is an OrderedDict-based Matlab-like container. Typical usage:
        
        ::
        
          import pydons
          import numpy as np
          struct = pydons.MatStruct()
          struct.string = 'A string'
          struct.list = ['list', 0, [1, 2]]
          struct.numpy = np.random.rand(3,3)
        
        IPython representation is customized:
        
        ::
        
          In [12]: struct
          Out[12]: 
          string: A string
            list: ['list', 0, [1, 2]]
           numpy: [[ 0.71539338  0.69970494  0.19328026]
           [ 0.28645949  0.15262059  0.23362895]
           [ 0.14518748  0.79911631  0.22522526]]
        
        MatStruct can be serialized to HDF5 files using ``hdf5storage``:
        
        ::
        
          In [15]: struct.saveh5('struct.h5')
          In [16]: pydons.MatStruct.loadh5('struct.h5')
          Out[16]: 
            list: ['list', 0, [1, 2]]
           numpy: [[ 0.71539338  0.69970494  0.19328026]
           [ 0.28645949  0.15262059  0.23362895]
           [ 0.14518748  0.79911631  0.22522526]]
          string: A string
        
        (the field order is not maintained---to be fixed soon). 
        Matlab HDF5 files can be used as well.
        In this case, numpy arrays are transposed and additional
        Matlab fields are written in the file.
        
        ::
        
          In [17]: struct.savemat('struct.mat')
          In [18]: pydons.MatStruct.loadmat('struct.mat')
          Out[18]: 
            list: ['list', 0, [1, 2]]
           numpy: [[ 0.71539338  0.69970494  0.19328026]
           [ 0.28645949  0.15262059  0.23362895]
           [ 0.14518748  0.79911631  0.22522526]]
          string: A string
        
        This software is distributed under the MIT license (see the LICENSE file).
        
Keywords: hdf5 matlab
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Database
Classifier: Topic :: Software Development :: Libraries :: Python Modules
