Commit ac96e365 authored by Anze Vavpetic's avatar Anze Vavpetic

removed some errant prints

parent a72879fb
......@@ -56,8 +56,6 @@ class TreeLiker:
with open(self.batch, 'w') as f:
f.write('\n'.join(commands))
print '\n'.join(commands)
def _cleanup(self):
"""
Cleans up all the temporary files.
......
......@@ -320,15 +320,9 @@ class TreeLikerConverter(Converter):
# Skip the class attribute
if self.db.target_att in cols:
cols.remove(self.db.target_att)
#attributes = self.db.fmt_cols(cols)
# All rows matching `pk`
#print "SELECT %s FROM %s WHERE `%s`='%s'" % (attributes, target, pk_att, pk)
#self.cursor.execute("SELECT %s FROM %s WHERE `%s`='%s'" % (attributes, target, pk_att, pk))
#for row in self.cursor:
for row in self.db.select_where(target, cols, pk_att, pk):
# print 'row'
#values = []
row_pk = self._row_pk(target, cols, row)
row_pk_name = '%s%s' % (target, str(row_pk))
parent_pk_name = '%s%s' % (parent_table, str(parent_pk))
......@@ -382,11 +376,6 @@ class TreeLikerConverter(Converter):
self._predicates.add(predicate_template)
self._template.append(predicate_template)
# if predicate == 'has_bonds':
# print self.db.pkeys[target]
# print self.db.fkeys[target]
# print row
# Recursively follow links to other tables
for table in self.db.tables:
if (target, table) not in self.db.connected:
......@@ -479,4 +468,3 @@ if __name__ == '__main__':
context.target_table = 'drugs'
context.target_att = 'active'
conv = Aleph_Converter(context)
print conv.background_knowledge()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment