Skip to content

Commit b465078

Browse files
committed
Put changes in 0607952 back
1 parent e967a6e commit b465078

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_image.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ def test_image():
5656
x = plist[0].getdata('x')
5757
tt1,i1 = (x[233]+x[280])/2,sum(i[233:281])
5858
#print(tt1,i1)
59-
msg = 'Confirm 1st peak'
60-
assert abs(tt1 - 2.2695) < 0.0002, msg+' pos'
61-
assert abs(i1 - 4645.6850578694975) < 0.1, msg+' intensity'
59+
msg = 'Test 1st peak'
60+
assert abs(tt1 - 2.2695) < 0.0002, msg+f' pos ({tt1})'
61+
assert abs(i1 - 4656.698709171848) < 0.1, msg+f' intensity ({i1})'
6262
tt6,i6 = (x[780]+x[850])/2,sum(i[780:851])
6363
#print(tt6,i6)
64-
msg = 'Confirm 6th peak'
65-
assert abs(tt6 - 3.9450) < 0.0002, msg+' pos'
66-
assert abs(i6 - 26236.795563010724) < 0.1, msg+' intensity'
64+
msg = 'Test 6th peak'
65+
assert abs(tt6 - 3.9450) < 0.0002, msg+f' pos ({tt6})'
66+
assert abs(i6 - 26423.739680809293) < 0.1, msg+f' intensity ({i6})'
6767
print('OK')
6868

6969
def test_CBF():

0 commit comments

Comments
 (0)