Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/t/o/topographica-0.9.8/topo/misc/unitsupport.py   topographica(Download)
            for idx,unit in enumerate(self._base_units):
                try:
                    val.asUnit(unit[0])
                    break
                except: pass
                if idx == len(self._base_units): print 'Cannot convert {0} to base unit.'.format(val)
            val = float(val.asUnit(self._base_units[idx][0])/self._base_units[idx][0])

src/t/o/topographica-HEAD/topo/misc/unitsupport.py   topographica(Download)
            for idx,unit in enumerate(self._base_units):
                try:
                    val.asUnit(unit[0])
                    break
                except: pass
                if idx == len(self._base_units): print 'Cannot convert {0} to base unit.'.format(val)
            val = float(val.asUnit(self._base_units[idx][0])/self._base_units[idx][0])