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
c31da313
Commit
c31da313
authored
Feb 28, 2018
by
Lynch, Vickie
Browse files
Refs #21752 fix doc tests
parent
b21f8987
Changes
4
Hide whitespace changes
Inline
Side-by-side
Framework/PythonInterface/mantid/api/src/Exports/IPeak.cpp
View file @
c31da313
...
...
@@ -68,6 +68,9 @@ void export_IPeak() {
.
def
(
"setRunNumber"
,
&
IPeak
::
setRunNumber
,
(
arg
(
"self"
),
arg
(
"run_number"
)),
"Set the run number that measured this peak"
)
.
def
(
"setPeakNumber"
,
&
IPeak
::
setPeakNumber
,
(
arg
(
"self"
),
arg
(
"peak_number"
)),
"Set the peak number for this peak"
)
.
def
(
"getMonitorCount"
,
&
IPeak
::
getMonitorCount
,
arg
(
"self"
),
"Get the monitor count set for this peak"
)
.
def
(
"setMonitorCount"
,
&
IPeak
::
setMonitorCount
,
...
...
docs/source/algorithms/SaveIsawPeaks-v1.rst
View file @
c31da313
...
...
@@ -30,6 +30,8 @@ Usage
# Add two peaks to the peaks workspace
AddPeak( pws, ws, TOF=100, DetectorID=101, Height=1 )
AddPeak( pws, ws, TOF=200, DetectorID=102, Height=2 )
peak = pws.getPeak(1).setPeakNumber(1)
peak = pws.getPeak(2).setPeakNumber(2)
# Save the peaks workspace to a file in the user's home directory
isawPeaksFilePath = os.path.expanduser('~/MantidUsageExample_ISawFile.peaks')
...
...
docs/source/algorithms/SortHKL-v1.rst
View file @
c31da313
...
...
@@ -54,7 +54,7 @@ and rhombohedral centering:
CellType='Hexagonal', Apply=True, Tolerance=0.2)
# Run the SortHKL algorithm
sorted, chi2, statistics_table = SortHKL(peaks, PointGroup='-3m1 (Trigonal - Hexagonal)',
sorted, chi2, statistics_table
, equivI
= SortHKL(peaks, PointGroup='-3m1 (Trigonal - Hexagonal)',
LatticeCentering='Rhombohedrally centred, obverse')
statistics = statistics_table.row(0)
...
...
docs/source/algorithms/StatisticsOfPeaksWorkspace-v1.rst
View file @
c31da313
...
...
@@ -62,7 +62,7 @@ Usage
CellType='Hexagonal', Apply=True, Tolerance=0.2)
# Run the SortHKL algorithm
sorted, statistics_table = StatisticsOfPeaksWorkspace(peaks, PointGroup='-3m1 (Trigonal - Hexagonal)',
sorted, statistics_table
, equivI
= StatisticsOfPeaksWorkspace(peaks, PointGroup='-3m1 (Trigonal - Hexagonal)',
LatticeCentering='Rhombohedrally centred, obverse',
SortBy='Overall')
...
...
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