AnalysisDataServiceImpl

This a python binding to the C++ class Mantid::API::AnalysisDataServiceImpl.

class mantid.api.AnalysisDataServiceImpl
Instance() → AnalysisDataServiceImpl :

Return a reference to the singleton instance

__init__()

Raises an exception This class cannot be instantiated from Python

add((AnalysisDataServiceImpl)self, (str)name, (object)item) → None :

Adds the given object to the service with the given name. If the name/object exists it will raise an error.

addOrReplace((AnalysisDataServiceImpl)self, (str)name, (object)item) → None :

Adds the given object to the service with the given name. The the name exists the object is replaced.

clear((AnalysisDataServiceImpl)self) → None :

Removes all objects managed by the service.

doesExist((AnalysisDataServiceImpl)self, (str)name) → bool :

Returns True if the object is found in the service.

getObjectNames((AnalysisDataServiceImpl)self) → object :

Return the list of names currently known to the ADS

importAll(mtd)

Creates a named variable in the globals dictionary of the current frame (inspect.currentframe).

For example, if the ADS contains a workspace with the name “deltax” then

mtd.importAll()

will create a python variable for that workspace as if the user had typed mtd[‘deltax’].

@param mtd The Analysis Data Service Object

remove((AnalysisDataServiceImpl)self, (str)name) → None :

Remove a named object

retrieve((AnalysisDataServiceImpl)self, (str)name) → Workspace :

Retrieve the named object. Raises an exception if the name does not exist

size((AnalysisDataServiceImpl)self) → int :

Returns the number of objects within the service