tomwer.core.futureobject.FutureTomwerObject#
- class tomwer.core.futureobject.FutureTomwerObject(tomo_obj, futures, start_time=None, process_requester_id=None)#
Container for an existing TomwerScanBase with some future object (like slice reconstruction on slurm…)
- Parameters:
scan – scan at the origin of the FutureTomwerScan
futures (tuple | list | None) – tuple of Future
start_time (datetime.time | None) – start_time of the FutureTomwerScan. If not provided this will be set to the date of creation of the object.
process_requester_id (int | None) – process of the id requesting future processing. This is useful to keep a trace on the source of the computation. To display supervisor ‘request’ for example.
- cancel()#
- cancelled()#
- done()#
- exceptions()#
Return exception with future as key and exception as value
- Return type:
dict | None
- extend_futures(futures)#
- Return type:
None
- property futures: tuple | None#
- property job_id: int | None#
- property logs: str#
- property process_requester_id: int | None#
- results()#
Force future and callback synchronization
- Return type:
- property start_time: datetime.time | None#
- property status: str | None#
- property tomo_obj: TomwerScanBase#