Did I find the right examples for you? yes no

All Samples(18)  |  Call(10)  |  Derive(0)  |  Import(8)

src/c/a/calibcant-0.9/calibcant/calibrate.py   calibcant(Download)
import h5py as _h5py
from pyafm.afm import AFM as _AFM
from h5config.storage.hdf5 import HDF5_Storage as _HDF5_Storage
 
from . import LOG as _LOG
def load(filename=None, group='/'):
    config = _CalibrateConfig(storage=_HDF5_Storage(
            filename=filename, group=group))
    config.load()
    return Calibrator(config=config)
    def save(self, filename=None, group='/'):
        storage = _HDF5_Storage(filename=filename, group=group)
        storage.save(config=self.config)
 
    @staticmethod

src/p/y/pyafm-0.5/pyafm/storage.py   pyafm(Download)
import os.path as _os_path
 
from h5config.storage.hdf5 import HDF5_Storage as _HDF5_Storage
 
from . import LOG as _LOG
    assert group.endswith('/'), group
    _LOG.info('saving AFM config to {} {}'.format(filename, group))
    storage = _HDF5_Storage(filename=filename, group=group)
    storage.save(config=afm.config)
 
    assert group.endswith('/'), group
    _LOG.info('loading AFM config from {} {}'.format(filename, group))
    config = _AFMConfig(storage=_HDF5_Storage(filename=filename, group=group))
    config.load()
    return config

src/u/n/unfold-protein-0.2/unfold_protein/storage.py   unfold-protein(Download)
# Copyright
 
import os.path as _os_path
 
from h5config.storage.hdf5 import HDF5_Storage as _HDF5_Storage
        assert group.endswith('/'), group
        _LOG.info('{} {} {}'.format(action, filename, group))
        storage = _HDF5_Storage(filename=filename, group=group)
    elif filename.endswith('.yaml'):
        assert group is None, group

src/c/a/calibcant-0.9/calibcant/util.py   calibcant(Download)
import h5py as _h5py
 
from h5config.storage.hdf5 import HDF5_Storage as _HDF5_Storage
from h5config.storage.hdf5 import h5_create_group as _h5_create_group
 
def save(filename=None, group='/', specs=tuple()):
    f = None
    storage = _HDF5_Storage()
    try:
        if isinstance(group, str):
def load(filename=None, group='/', specs=tuple()):
    data = {}
    f = None
    storage = _HDF5_Storage()
    try:
                d = d[n]
            if spec.config:
                d[spec.key[-1]] = spec.config(storage=_HDF5_Storage(group=cwg))
                d[spec.key[-1]].load()
                continue

src/p/y/pypiezo-0.7/pypiezo/wiggle.py   pypiezo(Download)
    import h5py as _h5py
    import h5config as _h5config
    from h5config.storage.hdf5 import HDF5_Storage as _HDF5_Storage
    from h5config.storage.hdf5 import h5_create_group as _h5_create_group
except ImportError, e:
    with _h5py.File(filename, 'w') as f:
        cwg = _h5_create_group(f, group)
        storage = _HDF5_Storage()
        for config_,key in [
            (config, 'config/wiggle'),

src/u/n/unfold-protein-0.2/unfold_protein/unfolder.py   unfold-protein(Download)
import time as _time
 
from h5config.storage.hdf5 import HDF5_Storage as _HDF5_Storage
from h5config.storage.hdf5 import h5_create_group as _h5_create_group
import h5py as _h5py
        _LOG.info('saving {}'.format(filename))
        with _h5py.File(filename, 'a') as f:
            storage = _HDF5_Storage()
            config_cwg = _h5_create_group(f, 'config')
            storage.save(config=self.config, group=config_cwg)

src/c/a/calibcant-0.9/calibcant/vibration_analyze.py   calibcant(Download)
    _matplotlib_import_error = e
 
from h5config.storage.hdf5 import HDF5_Storage as _HDF5_Storage
from h5config.storage.hdf5 import h5_create_group as _h5_create_group
import FFT_tools as _FFT_tools

src/c/a/calibcant-0.9/calibcant/temperature_analyze.py   calibcant(Download)
    _matplotlib_import_error = e
 
from h5config.storage.hdf5 import HDF5_Storage as _HDF5_Storage
from h5config.storage.hdf5 import h5_create_group as _h5_create_group