def __init__(self, easting, northing, direction, speed, timestamp): Point.__init__(self, easting, northing) self.direction_ = direction / 10.0 self.speed_ = speed / 10.0 self.timestamp_ = timestamp
def __init__(self, id, controlPin, buttonPin, comm_service): Point.__init__(self, id=id, controlPin=controlPin) self.buttonPin = buttonPin self.button = None self.led = None self.comm_service = comm_service logging.info("Light point {0} initialized, Ctn: {1}, Btn: {2}".format( self.id, self.controlPin, self.buttonPin))
def __init__(self, polar_coords, atom, size): ''' Surface object constructor ''' Point.__init__(self, None) self.radius, self.theta, self.phi = polar_coords self.atom = atom self.size = size
def __init__(self, polar_coords, atom, size): ''' Surface object constructor ''' Point.__init__(self, None) self.radius, self.theta, self.phi = polar_coords self.atom = atom self.size = size
def __init__(self, gnWikipediaResult): lat = gnWikipediaResult['lat'] lon = gnWikipediaResult['lng'] # for storage, we remember both name and summary in the message variable message = "%s\n%s" % (gnWikipediaResult['title'],gnWikipediaResult['summary']) Point.__init__(self, lat, lon, gnWikipediaResult.get('elevation', None), message) self.abstract="%s..." % gnWikipediaResult['summary'][0:50] # chop a part of the summary self.result = gnWikipediaResult
def __init__(self, num, name): ''' Residue creator Receives the residue number in the protein and the name of the residue (3-letter code) ''' Point.__init__(self, None) self.num = num self.name = name self.atoms = set() self.structure = None
def __init__(self, num, name): ''' Residue creator Receives the residue number in the protein and the name of the residue (3-letter code) ''' Point.__init__(self, None) self.num = num self.name = name self.atoms = set() self.structure = None
def __init__(self, num, name, position): ''' Atom creator Receives the index in the protein, the name (CA, OE2...) and the position coordinates ''' Point.__init__(self, position) self.num = num self.name = name self.residue = None self.heavy = True self._surfaces = {} if name[0] in ['H', '1', '2']: self.heavy = False
def __init__(self, num, name, position): ''' Atom creator Receives the index in the protein, the name (CA, OE2...) and the position coordinates ''' Point.__init__(self, position) self.num = num self.name = name self.residue = None self.heavy = True self._surfaces = {} if name[0] in ['H', '1', '2']: self.heavy = False
def __init__(self, *args, **kwargs): Point.__init__(self, *args, **kwargs) self.center = kwargs.get("center", None) self.velocity = kwargs.get("velocity", 3) self.radius = kwargs.get("radius", 1) self.color = kwargs.get("color", (0, 0, 0)) self.direction = kwargs.get("direction", random.choice(dirs)) self.dx = kwargs.get("dx", 5) self.dy = kwargs.get("dy", 5) if not self.center: self.center = Point(x=self.x, y=self.y) # print(self.center) self.bearing = math.radians(random.randint(0, 360)) self.dest = self.destination(100, self.bearing) self.vector = Vector(self.center, self.dest, velocity=self.velocity)
def __init__(self, x, y, z): # use x,y,z to initialize a vertex Point.__init__(self, x, y) self.__field_values = [ z ] # default.. a vertex has one field value when you initialize it... it can be extended!
def __init__(self, lat, lon, placeText): Point.__init__(self, lat, lon, message=placeText) self.name=placeText.split(',')[0] self.description=re.sub(',','\n',placeText) # replace separators with newlines
def __init__(self, x, y, box): self.box = box self.is_observed = False Point.__init__(self, x, y)
def __init__(self): Point.__init__(self)
def __init__(self, x, y, t, d): Point.__init__(self, x, y, t, "None") self.number = 0 self.duration = d self.percentDuration = 0.
def __init__(self): Point.__init__(self) self.orientation = NONE
def __init__(self, max_x, max_y): self.max_x = max_x self.max_y = max_y Point.__init__(self, *self.random_position())
def __init__(self,pt): Point.__init__(self,pt) self.neighbors = [self] self.rnn = []
def __init__(self, x=0, y=0): """ Ctor """ Point.__init__(self) self.x = float(x) self.y = float(y)
def __init__(self, x=None, y=None, is_fixed=False): Point.__init__(self, x, y, is_fixed=is_fixed) self._oldposition = np.copy(self.position) self.neighbors = set() self.error = 0
def __init__(self, x, y): Point.__init__(self, x, y) self.edges_id_ = []