Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/multi_component_hydrogen_bond_propensity/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ optional arguments:
the working directory for the calculation
-c COFORMER_LIBRARY, --coformer_library COFORMER_LIBRARY
the directory of the desired coformer library
-f FAILURE_DIRECTORY, --failure_directory FAILURE_DIRECTORY
The location where the failures file should be generated
```

The default coformer library is the one supplied with your Mercury install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ def main(structure, work_directory, failure_directory, library, csdrefcode):
tdata = get_mc_scores(propensities, crystal.identifier)
json.dump(tdata, file)
mc_dictionary[coformer_name] = get_mc_scores(propensities, crystal.identifier)
print(get_mc_scores(propensities, crystal.identifier))
except RuntimeError:
print("Propensity calculation failure for %s!" % coformer_name)
mc_dictionary[coformer_name] = ["N/A", "N/A", "N/A", "N/A", "N/A", crystal.identifier]
Expand All @@ -367,7 +366,7 @@ def main(structure, work_directory, failure_directory, library, csdrefcode):
# Make sense of the outputs of all the calculations
mc_hbp_screen = sorted(mc_dictionary.items(), key=lambda e: 0 if e[1][0] == 'N/A' else e[1][0], reverse=True)
diagram_file = make_diagram(api_molecule, work_directory)
chart_file = make_mc_chart(mc_hbp_screen, directory, api_molecule)
chart_file = make_mc_chart(mc_hbp_screen, work_directory, api_molecule)
make_mc_report(structure, mc_hbp_screen, work_directory, diagram_file, chart_file)
if failure_directory is not None:
with open(os.path.join(failure_directory, 'failures.txt'), 'w', encoding='utf-8', newline='') as file:
Expand Down