Did I find the right examples for you? yes no

All Samples(7)  |  Call(6)  |  Derive(0)  |  Import(1)

src/u/n/unfold-protein-0.2/unfold_protein/unfolder.py   unfold-protein(Download)
        # calculate parameters for move_to_pos_or_def from config
        setpoint_bits = _pypiezo_base.convert_volts_to_bits(
            def_config, setpoint)
        mid_pos_bits = _pypiezo_base.convert_meters_to_bits(
            axis_config, 0)
    def zero_piezo(self):
        _LOG.info('zero piezo')
        x_mid_pos = _pypiezo_base.convert_volts_to_bits(
            self.afm.piezo.config.select_config(
                'axes', 'x', get_attribute=_pypiezo_base.get_axis_name
                )['channel'],
            0)
        z_mid_pos = _pypiezo_base.convert_volts_to_bits(
            self.afm.piezo.config.select_config(

src/p/y/pyafm-0.5/pyafm/afm.py   pyafm(Download)
from pypiezo.base import convert_bits_to_meters as _convert_bits_to_meters
from pypiezo.base import convert_meters_to_bits as _convert_meters_to_bits
from pypiezo.base import convert_volts_to_bits as _convert_volts_to_bits
from pypiezo.surface import FlatFit as _FlatFit
from pypiezo.surface import SurfaceError as _SurfaceError
        def_config = self.piezo.config.select_config('inputs', 'deflection')
 
        zero = _convert_volts_to_bits(axis.config['channel'], 0)
        target_def = _convert_volts_to_bits(def_config, setpoint)
        self._check_target_deflection(deflection=target_def)

src/u/n/unfold-protein-0.2/unfold_protein/scan.py   unfold-protein(Download)
            'inputs', 'deflection')
        setpoint_bits = _pypiezo_base.convert_volts_to_bits(
            def_config, setpoint)
        self.unfolder.afm.stepper_approach(target_deflection=setpoint_bits)