Skip to content

Commit

Permalink
refs #10904. Expose PeakShape to python.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Feb 6, 2015
1 parent 43d4e25 commit bf27026
Showing 1 changed file with 19 additions and 0 deletions.
@@ -0,0 +1,19 @@
#include "MantidGeometry/Crystal/PeakShape.h"
#include <boost/python/class.hpp>
#include <boost/python/register_ptr_to_python.hpp>

using Mantid::Geometry::PeakShape;
using namespace boost::python;


void export_PeakShape()
{
register_ptr_to_python<PeakShape*>();

class_<PeakShape, boost::noncopyable>("PeakShape", no_init)
.def("toJSON", &PeakShape::toJSON, "Serialize object to JSON")
.def("shapeName", &PeakShape::shapeName, "Shape name for type of shape")
.def("algorithmVersion", &PeakShape::algorithmVersion, "Number of source integration algorithm version")
.def("algorithmName", &PeakShape::algorithmName, "Name of source integration algorithm")
;
}

0 comments on commit bf27026

Please sign in to comment.