@@ -218,23 +218,23 @@ def convertDuplicatesToMulti(self):
218218 Merge all marked duplicate reactions in the kinetics library
219219 into single reactions with multiple kinetics.
220220 """
221- print "trying to find duplicates"
221+ logging . debug ( "Searching for duplicate reactions..." )
222222 entries_to_remove = []
223223 for entry0 in self .entries .values ():
224224 if entry0 in entries_to_remove :
225225 continue
226226 reaction0 = entry0 .item
227227 if not reaction0 .duplicate :
228228 continue
229- print "Found a duplicate reaction: {0}" .format (reaction0 )
229+ logging . debug ( "Found a duplicate reaction: {0}" .format (reaction0 ) )
230230 duplicates = [entry0 ]
231231 for entry in self .entries .values ():
232232 reaction = entry .item
233233 if reaction0 is reaction :
234234 continue
235235 if reaction0 .isIsomorphic (reaction , eitherDirection = False ):
236236 if reaction0 .reversible != reaction .reversible :
237- print "Reactions isomorphic but with different reversibilities"
237+ logging . debug ( "Reactions isomorphic but with different reversibilities." )
238238 continue
239239 duplicates .append (entry )
240240 if len (duplicates )<= 1 :
@@ -271,9 +271,9 @@ def convertDuplicatesToMulti(self):
271271 entry0 .longDesc = longDesc
272272 entries_to_remove .extend (duplicates [1 :])
273273 for entry in entries_to_remove :
274- print "removing duplicate reaction with index {0}." .format (entry .index )
274+ logging . debug ( "Removing duplicate reaction with index {0}." .format (entry .index ) )
275275 del (self .entries [entry .index ])
276- print "NB. the entries have not been renumbered, so these indices are missing."
276+ logging . debug ( "NB. the entries have not been renumbered, so these indices are missing." )
277277
278278
279279 def load (self , path , local_context = None , global_context = None ):
0 commit comments