Skip to content

Commit 3a2d762

Browse files
committed
update the image self-test for Bob's new correction
1 parent 50574f3 commit 3a2d762

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_image.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,16 @@ def test_image():
5858
#print(tt1,i1)
5959
msg = 'Test 1st peak'
6060
assert abs(tt1 - 2.2695) < 0.0002, msg+f' pos ({tt1})'
61-
assert abs(i1 - 4656.698709171848) < 0.1, msg+f' intensity ({i1})'
61+
print(f"Peak 1 intensity {i1}")
62+
#assert abs(i1 - 4656.698709171848) < 0.1, msg+f' intensity ({i1})'
63+
assert abs(i1 - 4666.40015) < 0.1, msg+f' intensity ({i1})'
6264
tt6,i6 = (x[780]+x[850])/2,sum(i[780:851])
6365
#print(tt6,i6)
6466
msg = 'Test 6th peak'
6567
assert abs(tt6 - 3.9450) < 0.0002, msg+f' pos ({tt6})'
66-
assert abs(i6 - 26423.739680809293) < 0.1, msg+f' intensity ({i6})'
68+
print(f"Peak 6 intensity {i6}")
69+
#assert abs(i6 - 26423.739680809293) < 0.1, msg+f' intensity ({i6})'
70+
assert abs(i6 - 26518.61863) < 0.1, msg+f' intensity ({i6})'
6771
print('OK')
6872

6973
def test_CBF():

0 commit comments

Comments
 (0)