fixed formatting in docs due

This commit is contained in:
Blake Harnden 2020-01-16 16:12:01 -08:00
parent 5490f961a6
commit b8ded52a66
23 changed files with 106 additions and 109 deletions

View file

@ -100,7 +100,7 @@ class CoreLocation:
:param y: y value
:param z: z value
:return: lat, lon, alt values for provided coordinates
"""
"""
# shift (x,y,z) over to reference point (x,y,z)
x -= self.refxyz[0]
y = -(y - self.refxyz[1])
@ -142,7 +142,7 @@ class CoreLocation:
:param lon: longitude
:param alt: altitude
:return: converted x, y, z coordinates
"""
"""
# convert lat/lon to UTM coordinates in meters
e, n, zonen, zonel = utm.from_latlon(lat, lon)
_rlat, _rlon, ralt = self.refgeo
@ -249,7 +249,7 @@ class CoreLocation:
:param e: easting value
:param n: northing value
:return: modified easting, northing, and zone values
"""
"""
zone = self.refutm[0]
rlat, rlon, _ralt = self.refgeo
if e > 834000 or e < 166000:

View file

@ -51,7 +51,7 @@ class Timer(threading.Thread):
the timer was already running.
:return: True if canceled, False otherwise
"""
"""
locked = self._running.acquire(False)
if locked:
self.finished.set()
@ -222,7 +222,7 @@ class EventLoop:
:param args: event arguments
:param kwds: event keyword arguments
:return: created event
"""
"""
with self.lock:
eventnum = self.eventnum
self.eventnum += 1

View file

@ -233,7 +233,7 @@ class WirelessModel(ConfigurableOptions):
:param flags: link data flags
:return: link data
"""
"""
return []
def update(self, moved: bool, moved_netifs: List[CoreInterface]) -> None:
@ -473,7 +473,7 @@ class BasicRangeModel(WirelessModel):
:param p1: point one
:param p2: point two
:return: distance petween the points
"""
"""
a = p1[0] - p2[0]
b = p1[1] - p2[1]
c = 0
@ -502,7 +502,7 @@ class BasicRangeModel(WirelessModel):
:param interface2: interface two
:param message_type: link message type
:return: link data
"""
"""
return LinkData(
message_type=message_type,
node1_id=interface1.node.id,
@ -536,7 +536,7 @@ class BasicRangeModel(WirelessModel):
:param flags: link flags
:return: all link data
"""
"""
all_links = []
with self.wlan._linked_lock:
for a in self.wlan._linked:
@ -690,7 +690,7 @@ class WayPointMobility(WirelessModel):
:param node: node to move
:param dt: move factor
:return: True if node was moved, False otherwise
"""
"""
if node.id not in self.points:
return False
x1, y1, z1 = node.getposition()
@ -1058,7 +1058,7 @@ class Ns2ScriptedMobility(WayPointMobility):
:param file_name: file name to find
:return: absolute path to the file
"""
"""
if os.path.exists(file_name):
return file_name
@ -1103,7 +1103,7 @@ class Ns2ScriptedMobility(WayPointMobility):
:param nodenum: node id to map
:return: mapped value or the node id itself
"""
"""
nodenum = int(nodenum)
return self.nodemap.get(nodenum, nodenum)