Commit 154c5c53 authored by Samuel Jackson's avatar Samuel Jackson
Browse files

Apply clang format patch

parent 5d0c90ae
......@@ -38,7 +38,7 @@ namespace PythonInterface {
namespace Policies {
namespace // anonymous
{
{
//-----------------------------------------------------------------------
// MPL helper structs
//-----------------------------------------------------------------------
......
......@@ -109,10 +109,9 @@ void export_IPeak() {
"supplied.") // two argument
// overload
.def("setQSampleFrame", setQSampleFrame1,
(arg("self"), arg("qsample_frame")),
"Set the peak using the peak's "
"position in reciprocal space, "
"in the sample frame.")
(arg("self"), arg("qsample_frame")), "Set the peak using the peak's "
"position in reciprocal space, "
"in the sample frame.")
.def("setQSampleFrame", setQSampleFrame2,
(arg("self"), arg("qsample_frame"), arg("distance")),
"Set the peak using the peak's position in reciprocal space, in the "
......
......@@ -42,9 +42,8 @@ void setR(Goniometer &self, const object &data) {
void export_Goniometer() {
// return_value_policy for read-only numpy array
typedef return_value_policy<
Policies::MatrixRefToNumpy<Converters::WrapReadOnly>>
return_readonly_numpy;
typedef return_value_policy<Policies::MatrixRefToNumpy<
Converters::WrapReadOnly>> return_readonly_numpy;
class_<Goniometer>("Goniometer", init<>(arg("self")))
.def(init<Goniometer const &>((arg("self"), arg("other"))))
......
......@@ -45,9 +45,8 @@ Mantid::Kernel::V3D hklFromQ(OrientedLattice &self, const object &vec) {
void export_OrientedLattice() {
/// return_value_policy for read-only numpy array
typedef return_value_policy<
Policies::MatrixRefToNumpy<Converters::WrapReadOnly>>
return_readonly_numpy;
typedef return_value_policy<Policies::MatrixRefToNumpy<
Converters::WrapReadOnly>> return_readonly_numpy;
class_<OrientedLattice, bases<UnitCell>>(
"OrientedLattice",
......
......@@ -67,9 +67,8 @@ void export_UnitCell() {
.export_values();
/// return_value_policy for read-only numpy array
typedef return_value_policy<
Policies::MatrixRefToNumpy<Converters::WrapReadOnly>>
return_readonly_numpy;
typedef return_value_policy<Policies::MatrixRefToNumpy<
Converters::WrapReadOnly>> return_readonly_numpy;
class_<UnitCell>(
"UnitCell",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment