@@ -49,10 +49,12 @@ def test_algo(self):
4949
5050 def test_location (self ):
5151 assert Compound (
52- algo = "FindByFormula" , location = {'m' : 169.0893 , "rt" : 13.649 , 'a' : 29388223 , 'y' : 3377289 }
52+ algo = "FindByFormula" ,
53+ location = {'m' : 169.0893 , "rt" : 13.649 , 'a' : 29388223 , 'y' : 3377289 },
5354 ).location == {'m' : 169.0893 , "rt" : 13.649 , 'a' : 29388223 , 'y' : 3377289 }
5455 assert Compound (
55- algo = "FindByFormula" , location = {'m' : 169.0893 , "rt" : 13.649 , 'a' : 29388223 , 'y' : 3377289 }
56+ algo = "FindByFormula" ,
57+ location = {'m' : 169.0893 , "rt" : 13.649 , 'a' : 29388223 , 'y' : 3377289 },
5658 ).location == {'m' : 169.0893 , "rt" : 13.649 , 'a' : 29388223 , 'y' : 3377289 }
5759 assert Compound (algo = "FindByFormula" ).location == {}
5860
@@ -63,7 +65,7 @@ def test_location(self):
6365 {"fbf" : Score (82.53 , flag_string = "No H adduct" , flag_severity = 2 )},
6466 {"fbf" : Score (60.62 , flag_string = "low score" , flag_severity = 2 )},
6567 {"fbf" : Score (62.90 , flag_string = "low score" , flag_severity = 2 )},
66- ]
68+ ],
6769 )
6870 def test_compound_scores (self , scores ):
6971 assert Compound (algo = "FindByFormula" , compound_scores = scores ).compound_scores == copy .deepcopy (scores )
@@ -222,11 +224,13 @@ def expected_compound(fbf_spectrum, tof_spectrum):
222224 compound_scores = {"fbf" : score },
223225 results = [
224226 Molecule (
225- name = "Diphenylamine" , formula = "C12 H11 N" , matches = {
227+ name = "Diphenylamine" ,
228+ formula = "C12 H11 N" ,
229+ matches = {
226230 "overall" : score ,
227231 "tgt" : score ,
228- }
229- )
232+ },
233+ ),
230234 ],
231235 spectra = [fbf_spectrum , tof_spectrum ],
232236 )
@@ -260,7 +264,7 @@ def test_parse_cef(tmpdir, expected_compound):
260264 { raw_xml }
261265</CompoundList>
262266</CEF>
263- """
267+ """ ,
264268 )
265269
266270 cef = parse_cef (PathPlus (tmpdir ) / "demo.cef" )
0 commit comments