Skip to content

Commit 92803cf

Browse files
committed
Added or statement to avoid negative networks in landscape NO_JIRA
1 parent 5052978 commit 92803cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/hydrogen_bond_propensity/hydrogen_bond_propensity_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def hbp_landscape(groups, observed_groups, crystal, directory, work_directory, d
264264
highest_pairs = obs_pairs
265265

266266
# Static legend
267-
if highest_pairs <= 10:
267+
if highest_pairs <= 10 or obs_pairs < 6:
268268
for i, colour in enumerate(hbp_colours):
269269
figure_i = plt.scatter([group.hbond_score for group in groups if len(group.hbonds) == i],
270270
[abs(group.coordination_score) for group in groups if len(group.hbonds) == i],

0 commit comments

Comments
 (0)