Did I find the right examples for you? yes no

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/u/n/unfold-protein-0.2/unfold_protein/unfolder.py   unfold-protein(Download)
            def_config, setpoint)
        mid_pos_bits = _pypiezo_base.convert_meters_to_bits(
            axis_config, 0)
        step_pos_bits = _pypiezo_base.convert_meters_to_bits(
            axis_config, config['step'])
        final_pos_m = start_pos_m - config['distance']
        final_pos = _pypiezo_base.convert_meters_to_bits(
            axis_config, final_pos_m)
        dtype = self.afm.piezo.channel_dtype(
            self.afm.config['main-axis'], direction='output')

src/p/y/pyafm-0.5/pyafm/afm.py   pyafm(Download)
from pypiezo.afm import AFMPiezo as _AFMPiezo
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
                  % self.config['main-axis'])
        target_m = pos_m + depth
        target = _convert_meters_to_bits(axis.config, target_m)
        self.piezo.jump(
            self.config['main-axis'], target, steps=steps, sleep=sleep)

src/u/n/unfold-protein-0.2/unfold_protein/scan.py   unfold-protein(Download)
            next_pos_m = pos_m + self._state['x direction']*step
        next_pos = _pypiezo_base.convert_meters_to_bits(
            axis_config, next_pos_m)
        _LOG.info('move {} from {:g} to {:g} bits'.format(
                axis_name, pos, next_pos))

src/c/a/calibcant-0.9/calibcant/bump.py   calibcant(Download)
import numpy as _numpy
 
from pypiezo.base import convert_meters_to_bits as _convert_meters_to_bits
from pypiezo.base import convert_bits_to_meters as _convert_bits_to_meters
 
    start_pos_m = _convert_bits_to_meters(axis.config, start_pos)
    close_pos_m = start_pos_m + config['push-depth']
    close_pos = _convert_meters_to_bits(axis.config, close_pos_m)
 
    dtype = afm.piezo.channel_dtype(