Subclass of CutoffCalculator which acts as a proxy to a remote
CutoffCalculator, connecting via HTTP. If the connection fails,
CutoffCalculatorClient falls back to computing the cutoffs on its own
using locally available information.
|
float
|
__init__(self,
host,
port,
server_id,
timeout=3.1,
batch_size=1,
**kwds)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
|
addPoseRemote(self,
pose)
Add the latest pose to a local queue; if the batch size (specified
while constructing the CutoffCalculatorClient) is reached, post the
poses to the server and empty the queue. |
|
|
|
dict
|
post(self)
POST the current batch to the cutoff calculator server. |
|
|
|
|
|
|
Inherited from CutoffCalculator:
addPoses,
checkScore,
computeInitialCutoff,
getCutoffs,
getScores
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|