File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
6969def test_CBF ():
You can’t perform that action at this time.
0 commit comments