Skip to content
Snippets Groups Projects
Commit d22a4cdb authored by Alex Buts's avatar Alex Buts
Browse files

Re #13566 Should fix doctest

parent 32d4d2d0
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ to convert units from TOF to energy.
resEi.append((nop,t_peak));
print "! Guess Ei ! peak TOF ! peak height ! peak width !"
for ind,val in enumerate(resEi):
print "! {0: >6.2f} ! {1: >6.2f} ! {2: >6.2f} ! {3: >6.2f} !".format(allEi[ind],val[1],peakHeight[ind],peakWidth[ind])
print "! {0: >6.1f} ! {1: >6.2f} ! {2: >6.2f} ! {3: >6.2f} !".format(allEi[ind],val[1],peakHeight[ind],peakWidth[ind])
#
# NOTE: incident energy of GetEi is calculated from distance between monitor 1 and 2, and this distance is not correct in
# the test workspace. The important pint is that getEi can find energies from guess values and TOF for peaks is correct.
......@@ -87,9 +87,9 @@ Output:
:options: +NORMALIZE_WHITESPACE
! Guess Ei ! peak TOF ! peak height ! peak width !
! 67.05 ! 4188.16 ! 34.68 ! 2.35 !
! 124.15 ! 3079.10 ! 14.01 ! 4.35 !
! 67.0 ! 4188.03 ! 34.68 ! 2.35 !
! 124.0 ! 3079.09 ! 14.01 ! 4.35 !
.. categories::
.. sourcelink::
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment