Skip to content

Commit

Permalink
Merge pull request #171 from hjkgrp/MOF_code
Browse files Browse the repository at this point in the history
Change to fix formatting issues of trailing white space
  • Loading branch information
gianmarco-terrones committed Sep 15, 2023
2 parents e664dbb + e9f5064 commit 24991c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion molSimplify/Informatics/MOF/MOF_descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ def make_MOF_linker_RACs(linkerlist, linker_subgraphlist, molcif, depth, name, c
if not os.path.exists(xyz_path):
linker_mol_fcoords_connected = XYZ_connected(cell_v, linker_mol_cart_coords, linker_mol_adj_mat)
writeXYZandGraph(xyz_path, linker_mol_atom_labels, cell_v, linker_mol_fcoords_connected, linker_mol_adj_mat)

# Write TXT file indicating the connecting atoms
linker_index_connection_indices = []
for item in global_connection_indices:
Expand Down Expand Up @@ -1192,7 +1193,7 @@ def get_MOF_descriptors(data, depth, path=False, xyzpath=False, graph_provided=F
return full_names, full_descriptors
if (len(full_names) <= 1) and (len(full_descriptors) <= 1):
print(f'full_names is {full_names} and full_descriptors is {full_descriptors}')
failure_str = f'Failed to featurize {name}: Only zero or one total linkers identified.\n'
failure_str = f'Failed to featurize {name}: Only zero or one total linkers identified.\n'
full_names, full_descriptors = failure_response(path, failure_str)
return full_names, full_descriptors

Expand Down

0 comments on commit 24991c8

Please sign in to comment.