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

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/q/u/QuadraTot-HEAD/code/ExternalStrategy.py   QuadraTot(Download)
import pdb
 
from RobotConstants import MIN_INNER, MAX_INNER, MIN_OUTER, MAX_OUTER, NORM_CENTER, MIN_CENTER, MAX_CENTER
from Strategy import Strategy, OneStepStrategy
from util import matInterp, prettyVec, writeArray
            positions[:,ii] += MIN_OUTER
        for ii in centerIdx:
            positions[:,ii] *= (MAX_CENTER - MIN_CENTER)
            positions[:,ii] += MIN_CENTER
 

src/q/u/QuadraTot-HEAD/code/simrunADDON.py   QuadraTot(Download)
from copy import copy
from time import sleep
from RobotConstants import MIN_INNER, MAX_INNER, MIN_OUTER, MAX_OUTER, MIN_CENTER, MAX_CENTER, NORM_CENTER
 
class simrun:
            ret[ii] = max(MIN_INNER, min(MAX_INNER, ret[ii]))
            ret[ii+1] = max(MIN_OUTER, min(MAX_OUTER, ret[ii+1]))
        ret[8] = max(MIN_CENTER, min(MAX_CENTER, ret[8]))
 
        if cropWarning and ret != position:

src/q/u/QuadraTot-HEAD/code/simrun.py   QuadraTot(Download)
from copy import copy
from time import sleep
from RobotConstants import MIN_INNER, MAX_INNER, MIN_OUTER, MAX_OUTER, MIN_CENTER, MAX_CENTER, NORM_CENTER
 
class simrun:
            ret[ii] = max(MIN_INNER, min(MAX_INNER, ret[ii]))
            ret[ii+1] = max(MIN_OUTER, min(MAX_OUTER, ret[ii+1]))
        ret[8] = max(MIN_CENTER, min(MAX_CENTER, ret[8]))
 
        if cropWarning and ret != position: