Ticket #111 (closed: fixed)

Opened 13 years ago

Last modified 5 years ago

Can we bind through python and C++ to the same instance of the same DLL?

Reported by: Nick Draper Owned by: Matt Clarke
Priority: major Milestone: Iteration 7
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description (last modified by Nick Draper) (diff)

This would be really good if we could!

The current interface through python will work for running algorithms and extracting data for plotting.

However we also have a requirement to display the internal geometry of the instrument in an OpenGL 3D view. This would require access to the geometry objects of the instrument. while we could add these to the Python API it would be quite a lot of classes, and performance extracting the data might be a problem.

If we could have a C++ and Python binding to the same in memory instance of Mantid then we could issue commands through Python and extract the data through C++. I think this would ive us the best of both worlds, I'm just not sure if it is possible.

Change History

comment:1 Changed 13 years ago by Nick Draper

  • Description modified (diff)

comment:2 Changed 12 years ago by Nick Draper

  • Status changed from new to closed
  • Resolution set to fixed

Yes, we can!

It appears that if you link QTIplot to mantid in C++ and then try to link to Mantid in a hosted python session you get the same instance.

comment:3 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 959

Note: See TracTickets for help on using tickets.