Skip to content

Access dictionaries as class and save complex data in hdf5 or python pickle

License

Notifications You must be signed in to change notification settings

marcocamma/datastorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datastorage

To use simply do::
>>> from datastorage import DataStorage
>>> data = DataStorage( a=(1,2,3),b="add",filename='store.npz' )
>>> # data.a will be a dictionary
>>> data = DataStorage( myinfo = dict( name= 'marco', surname= 'cammarata'),\
>>>                     data   = np.arange(100) )
>>>  # reads from file if it exists
>>>  data = DataStorage( 'mysaveddata.npz' ) ;
>>>  create empty storage (with default filename)
>>>  data = DataStorage()
>>>  data.mynewdata = np.ones(10)

About

Access dictionaries as class and save complex data in hdf5 or python pickle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages