Skip to content

Commit

Permalink
Merge pull request #123 from hjkgrp/pormake_update
Browse files Browse the repository at this point in the history
minor changes to pormake code
  • Loading branch information
gianmarco-terrones authored Jan 4, 2023
2 parents 0e4dfcf + e4f3469 commit 4a22740
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions molSimplify/Informatics/MOF/fragment_MOFs_for_pormake.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def make_MOF_fragments(data, depth, path=False, xyzpath = False):
return None, None
distance_mat = compute_distance_matrix2(cell_v,cart_coords)
try:
adj_matrix=compute_adj_matrix(distance_mat,allatomtypes)
adj_matrix, _ =compute_adj_matrix(distance_mat,allatomtypes)
except NotImplementedError:
tmpstr = "Failed to featurize %s: atomic overlap\n"%(name)
write2file(path,"/FailedStructures.log",tmpstr)
Expand Down Expand Up @@ -644,11 +644,5 @@ def make_MOF_fragments(data, depth, path=False, xyzpath = False):
print('=== SKIPPING DUE TO LINKER BEING TOO SHORT!')
return 3

return_code = breakdown_MOF(SBU_list, SBU_subgraphlist, molcif, depth, name , cell_v,anc_atoms, sbupath, connections_list, connections_subgraphlist,linkerpath)
return_code = breakdown_MOF(SBU_list, SBU_subgraphlist, molcif, depth, name, cell_v, anc_atoms, sbupath, connections_list, connections_subgraphlist, linkerpath)
return return_code






0 comments on commit 4a22740

Please sign in to comment.