Commit 28e3268c authored by Bharath Ramsundar's avatar Bharath Ramsundar
Browse files

Two more zip instances

parent 0f993d14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ class ConvMolFeaturizer(Featurizer):
    # Get the node features
    idx_nodes = [(a.GetIdx(), atom_features(a)) for a in mol.GetAtoms()]
    idx_nodes.sort()  # Sort by ind to ensure same order as rd_kit
    idx, nodes = zip(*idx_nodes)
    idx, nodes = list(zip(*idx_nodes))

    # Stack nodes into an array
    nodes = np.vstack(nodes)
+1 −1
Original line number Diff line number Diff line
@@ -281,7 +281,7 @@ class ConvMol(object):
    # second colum telling the size of each degree block

    # Input for tensorflow 
    deg_slice = np.array(zip(deg_start, deg_sizes))
    deg_slice = np.array(list(zip(deg_start, deg_sizes)))
    
    # Determines the membership (atom i belongs to membership[i] molecule)
    membership = [k