Information
We are currently investigating an issue with the editor of some pages. Please save your work and avoid to create new pages until this banner is gone.
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
#Sending --- Img (list of int[0-255]) to string (OctetSeq mapping)
img = [2,3,12,...]
octseq = str(bytearray(img))
#Receiving --- OctetSeq mapping to Img (list of int[0-255])
octseq = takeImage(...)
b = bytearray()
b.extend(octseq)
img = list(b) |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
#Sending
img = [2,3,12,...]
octseq = str(bytearray(img))
imgList = [octseq, octseq, octseq]
#Receiving
imgList = ...
imgs = []
for octseq in imgList
b = bytearray()
b.extend(octseq)
img = list(b)
imgs.append(img) |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
from TYPES import Position
#Sending
pos = Position(az, el)
#Receiving
pos = ...
az = pos.az
el = pos.el |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
from TYPES import Target
from TYPES import Position
#Sending
pos = Position(az, el)
tar = Target(tid, pos, expTime)
#Receiving
tar = ...
tid = tar.tid
pos = tar.pos
eTime = tar.expTime |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
from TYPES import Target
from TYPES import Position
#Sending
pos = Position(az, el)
tar = Target(tid, pos, expTime)
tList = [tar, tar, tar]
#Receiving
tarList = ...
for tar in tarList:
tid = tar.tid
pos = tar.pos
eTime = tar.expTime
... |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||