Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(51)  |  Call(49)  |  Derive(0)  |  Import(2)

src/i/n/InstrumentKit-HEAD/python/src/instruments/units.py   InstrumentKit(Download)
## IMPORTS #####################################################################
 
from quantities import Hz, milli, GHz, UnitQuantity, Quantity
from quantities.unitquantity import IrreducibleUnit
 
# TODO: move custom units out to another module.
 
mHz = UnitQuantity('millihertz', milli * Hz, symbol='mHz', doc="""
`~quantities.UnitQuantity` representing millihertz, the native unit of the
Phase Matrix FSW-0020.

src/r/m/RMG-Py-HEAD/rmgpy/quantity.py   RMG-Py(Download)
# These units are not defined by the quantities package, but occur frequently
# in data handled by RMG, so we define them manually
pq.UnitQuantity('kilocalories', pq.cal*1e3, symbol='kcal')
pq.UnitQuantity('kilojoules', pq.J*1e3, symbol='kJ')
pq.UnitQuantity('kilomoles', pq.mol*1e3, symbol='kmol')
pq.UnitQuantity('molecule', pq.mol/6.02214179e23, symbol='molecule')
pq.UnitQuantity('molecules', pq.mol/6.02214179e23, symbol='molecules')

src/r/a/rabacus-0.9.0/rabacus/constants/units.py   rabacus(Download)
        self.pc = pq.pc 
 
        self.AU  = pq.UnitQuantity( 'astronomical unit',
                                     pc.AU,
                                     symbol='AU' )
 
        self.kpc = pq.UnitQuantity( 'kiloparsec',
                                     symbol='kpc' )
 
        self.Mpc = pq.UnitQuantity( 'megaparsec',
                                     1.0e6 * self.pc,
                                     symbol='Mpc' )
        self.yr = pq.yr
 
        self.Myr = pq.UnitQuantity( 'megayear',
                                     1.0e6 * self.yr,
                                     symbol='Myr' )
 
        self.Gyr = pq.UnitQuantity( 'gigayear',

src/s/o/sonde-HEAD/sonde/quantities.py   sonde(Download)
 
#: Unit of concentration - milligrams per liter
mgl = pq.UnitQuantity('Concentration',
                      pq.CompoundUnit("mg/L"),
                      symbol='mg/L')
 
#: Unit of specific conductivity - milliSiemens per centimeter
mScm = pq.UnitQuantity('Specific Conductivity in MilliSiemens per Centimeter',
 
#: Unit of turbidity - nephelometric turbidity units
ntu = pq.UnitQuantity('Turbidity',
                      pq.dimensionless,
                      symbol='NTU')
 
#: Unit of salinity - practical salinity units
psu = pq.UnitQuantity('Salinity',
 
#unit of speed
mps = pq.UnitQuantity('meter per second', pq.m / pq.second, symbol='m/s')
fps = pq.UnitQuantity('foot per second', pq.foot / pq.second, symbol='ft/s')
 

src/p/y/pyhis-0.1.1-alpha/pyhis/quantities.py   pyhis(Download)
 
#: Unit of concentration - milligrams per liter
mgl = pq.UnitQuantity('Concentration',
                      pq.CompoundUnit("mg/L"),
                      symbol='mg/L')
 
#: Unit of specific conductivity - milliSiemens per centimeter
mScm = pq.UnitQuantity('Specific Conductivity in MilliSiemens per Centimeter',
 
#: Unit of turbidity - nephelometric turbidity units
ntu = pq.UnitQuantity('Turbidity',
                      pq.dimensionless,
                      symbol='NTU')
 
#: Unit of salinity - practical salinity units
psu = pq.UnitQuantity('Salinity',
 
#unit of speed
mps = pq.UnitQuantity('Speed', pq.m / pq.second, symbol='m/s')
 
#: Unit of specific conductivity - microSiemens per centimeter

src/t/o/topographica-0.9.8/topo/misc/unitsupport.py   topographica(Download)
        """
        if obj.package == 'Quantities':
            unit_obj = pq.UnitQuantity(name, definition=conversion,symbol=unit_key)
 
            if base:

src/t/o/topographica-HEAD/topo/misc/unitsupport.py   topographica(Download)
        """
        if obj.package == 'Quantities':
            unit_obj = pq.UnitQuantity(name, definition=conversion,symbol=unit_key)
 
            if base:

src/i/n/InstrumentKit-HEAD/python/src/instruments/newport/newportesp301.py   InstrumentKit(Download)
    """
    # quantities micro inch
    micro_inch = pq.UnitQuantity('micro-inch',pq.inch/1e6, symbol = 'uin')
 
    # Some more work might need to be done here to make

src/e/g/egads-0.5.7/egads/__init__.py   egads(Download)
import quantities as units
 
units.hPa = units.UnitQuantity('hectopascal', units.Pa * 100, symbol='hPa')
 
import core

src/n/e/neo-0.3.3/neo/io/pynnio.py   neo(Download)
    'spikes': pq.ms,
    'v': pq.mV,
    'gsyn': pq.UnitQuantity('microsiemens', 1e-6*pq.S, 'uS', '┬ÁS'), # checked
}
 

  1 | 2  Next