Skip to content

Commit

Permalink
Refs #9568. Attempt to fix errors
Browse files Browse the repository at this point in the history
Python < 2.7 requires format fields to be numbered.
  • Loading branch information
arturbekasov committed Jun 9, 2014
1 parent 15de630 commit 2278596
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/docs/source/algorithms/AlphaCalc-v1.rst
Expand Up @@ -31,7 +31,7 @@ Usage

alpha = AlphaCalc(input)

print 'Alpha value: {:.3f}'.format(alpha)
print 'Alpha value: {0:.3f}'.format(alpha)

Output:

Expand All @@ -51,7 +51,7 @@ Output:
ForwardSpectra=[2],
BackwardSpectra=[1])

print 'Alpha value: {:.3f}'.format(alpha)
print 'Alpha value: {0:.3f}'.format(alpha)

Output:

Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/docs/source/algorithms/ApplyDeadTimeCorr-v1.rst
Expand Up @@ -57,7 +57,7 @@ Usage
original = Integration('input')
corrected = Integration('output')

format_str = 'Spectrum: {:d}; original: {:.3f}; corrected: {:.3f}'
format_str = 'Spectrum: {0:d}; original: {1:.3f}; corrected: {2:.3f}'

for s in [0,32,63]:
print format_str.format(s, original.readY(s)[0], corrected.readY(s)[0])
Expand Down Expand Up @@ -86,7 +86,7 @@ Output:
original = Integration(input.getItem(0))
corrected = Integration(output.getItem(0))

format_str = 'Spectrum: {:d}; original: {:.3f}; corrected: {:.3f}'
format_str = 'Spectrum: {0:d}; original: {1:.3f}; corrected: {2:.3f}'

for s in [0,32,63]:
print format_str.format(s, original.readY(s)[0], corrected.readY(s)[0])
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/docs/source/algorithms/MuonLoad-v1.rst
Expand Up @@ -57,7 +57,7 @@ Usage

output_int = Integration(output)

print 'Integrated asymmetry for the run: {:.3f}'.format(output_int.readY(0)[0])
print 'Integrated asymmetry for the run: {0:.3f}'.format(output_int.readY(0)[0])

Output:

Expand Down

0 comments on commit 2278596

Please sign in to comment.