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 (TomwerScanBase) – scan at the origin of the FutureTomwerScan

  • futures (tuple) – tuple of Future

  • start_time (Optional[datetime.time]) – start_time of the FutureTomwerScan. If not provided this will be set to the date of creation of the object.

  • process_requester_id (int) – process of the id requesting future processing. This is usefull 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:

Optional[dict]

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:

TomwerScanBase

property start_time: time | None#
property status: str | None#
property tomo_obj: TomwerScanBase#