openprotein.predictor.PredictionResultFuture#
- class openprotein.predictor.PredictionResultFuture(session, job, sequences=None)[source]#
Prediction results represented as a future.
- Parameters:
session (APISession)
job (PredictJob | PredictSingleSiteJob | PredictMultiJob | PredictMultiSingleSiteJob)
sequences (list[bytes] | None)
- __init__(session, job, sequences=None)[source]#
- Parameters:
session (APISession)
job (PredictJob | PredictSingleSiteJob | PredictMultiJob | PredictMultiSingleSiteJob)
sequences (list[bytes] | None)
Methods
__init__(session, job[, sequences])cancelled()Check if the job has been cancelled.
create(session[, job_id, job, response])Create an instance of the appropriate Future class based on the job type.
done()Check if the job has completed.
get([verbose])Get embedding results for specified sequence.
get_item(sequence)Get embedding results for specified sequence.
refresh()Refresh the job status and internal job object.
wait([interval, timeout, verbose])Wait for the job to complete, then fetch results.
wait_until_done([interval, timeout, verbose])Wait for the job to complete.
Attributes
created_dateThe creation timestamp of the job.
end_dateThe end timestamp of the job.
idThe unique identifier of the job.
job_idThe unique identifier of the job.
job_typeThe type of the job.
progress_counterThe progress counter of the job.
sequencesstart_dateThe start timestamp of the job.
statusThe current status of the job.
jobsession