PythonInterface casting for workspaces can't work with multiple inheritance, e.g IMaskWorkspace #9839
Labels
Extra Attention
Testers and Gate keepers should pay extra attention as this affects core aspects.
High Priority
An issue or pull request that if not addressed is severe enough to postponse a release.
Milestone
This ticket is blocks :
TRAC8304, TRAC8943It was found while trying to implement http://trac.mantidproject.org/mantid/ticket/8943 that the automatic downcast of
DataItem
pointers when returning to Python doesn't work for objects that multiple inherit from several interfaces.The current mechanism tries to determine the required Python class automagically but fails in these types of circumstance and due to how boost python works it can't be made to work.
This ticket will be about implementing a simpler solution than the auto casting. It will simply have a C++ map of string IDs to the C++ types that they should be exposed as when returned to Python. This will also allow us more flexibility in choosing what is returned.
Keywords: CORE
The text was updated successfully, but these errors were encountered: