Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
154c5c53
Commit
154c5c53
authored
Jan 18, 2018
by
Samuel Jackson
Browse files
Apply clang format patch
parent
5d0c90ae
Changes
5
Hide whitespace changes
Inline
Side-by-side
Framework/PythonInterface/inc/MantidPythonInterface/kernel/Policies/MatrixToNumpy.h
View file @
154c5c53
...
...
@@ -38,7 +38,7 @@ namespace PythonInterface {
namespace
Policies
{
namespace
// anonymous
{
{
//-----------------------------------------------------------------------
// MPL helper structs
//-----------------------------------------------------------------------
...
...
Framework/PythonInterface/mantid/api/src/Exports/IPeak.cpp
View file @
154c5c53
...
...
@@ -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 "
...
...
Framework/PythonInterface/mantid/geometry/src/Exports/Goniometer.cpp
View file @
154c5c53
...
...
@@ -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"
))))
...
...
Framework/PythonInterface/mantid/geometry/src/Exports/OrientedLattice.cpp
View file @
154c5c53
...
...
@@ -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"
,
...
...
Framework/PythonInterface/mantid/geometry/src/Exports/UnitCell.cpp
View file @
154c5c53
...
...
@@ -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"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment