Beispiel #1
0
 def test_compute_ligand_atom_counts(self):
     """
 TestBinana: Compute the Number of Ligand Atom Counts.
 """
     counts_dict = {}
     for name, _, ligand in self.test_cases:
         counts_dict[name] = compute_ligand_atom_counts(ligand)
     for name, counts in counts_dict.iteritems():
         print "Processing ligand atom counts for %s" % name
         assert len(counts) == len(Binana.atom_types)
 def test_compute_ligand_atom_counts(self):
   """
   TestBinana: Compute the Number of Ligand Atom Counts.
   """
   counts_dict = {}
   for name, _, ligand in self.test_cases:
     counts_dict[name] = compute_ligand_atom_counts(
         ligand)
   for name, counts in counts_dict.iteritems():
     print "Processing ligand atom counts for %s" % name
     assert len(counts) == len(Binana.atom_types)
Beispiel #3
0
 def test_compute_ligand_atom_counts(self):
     """
 TestBinana: Compute the Number of Ligand Atom Counts.
 """
     counts_dict = {}
     for name, _, ligand in self.test_cases:
         counts_dict[name] = compute_ligand_atom_counts(ligand)
     for name, counts in counts_dict.iteritems():
         print "Processing ligand atom counts for %s" % name
         # TODO(rbharath): This code is useful for debugging. Remove once
         # codebase is stable enough.
         #for key in Binana.atom_types:
         #  if key in counts:
         #    del counts[key]
         #print "Residual counts:"
         #print counts
         assert len(counts) == len(Binana.atom_types)
Beispiel #4
0
 def test_compute_ligand_atom_counts(self):
   """
   TestBinana: Compute the Number of Ligand Atom Counts.
   """
   counts_dict = {}
   for name, _, ligand in self.test_cases:
     counts_dict[name] = compute_ligand_atom_counts(
         ligand)
   for name, counts in counts_dict.iteritems():
     print "Processing ligand atom counts for %s" % name
     # TODO(rbharath): This code is useful for debugging. Remove once
     # codebase is stable enough.
     #for key in Binana.atom_types:
     #  if key in counts:
     #    del counts[key]
     #print "Residual counts:"
     #print counts
     assert len(counts) == len(Binana.atom_types)