Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

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
 
    def load_from_config(self, devices):
        if self.afm is None:
            self.afm = _AFM(config=self.config['afm'])
            self.afm.load_from_config(devices=devices)
 

src/u/n/unfold-protein-0.2/unfold_protein/unfolder.py   unfold-protein(Download)
    def load_from_config(self, devices):
        c = self.config  # reduce verbosity
        if self.afm is None and c['afm']:
            self.afm = _pyafm_afm.AFM(config=c['afm'])
            self.afm.load_from_config(devices=devices)