pymor.parallel.manager

Module Contents

Classes

RemoteObjectManager

A simple context manager to keep track of RemoteObjects.

class pymor.parallel.manager.RemoteObjectManager[source]

Bases: pymor.core.base.BasicObject

A simple context manager to keep track of RemoteObjects.

When leaving this context, all RemoteObjects that have been managed by this object will be removed.

__enter__(self)[source]
__exit__(self, exc_type, exc_val, exc_tb)[source]
__del__(self)[source]
remove_objects(self)[source]

Call remove for all managed objects.

manage(self, remote_object)[source]

Add a RemoteObject to the list of managed objects.

Parameters

remote_object

The object to add to the list.

Returns

remote_object