From 0296fa66768ae6be8245e247957e0d643316b1a3 Mon Sep 17 00:00:00 2001 From: Maksim Imakaev Date: Sat, 7 Dec 2019 13:50:59 -0500 Subject: [PATCH] allowed forcekit w/o bondforce --- polychrom/forcekits.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/polychrom/forcekits.py b/polychrom/forcekits.py index 6aaa0a3..9406c18 100644 --- a/polychrom/forcekits.py +++ b/polychrom/forcekits.py @@ -61,9 +61,10 @@ def polymer_chains( for reporter in sim_object.reporters: reporter.report("forcekit_polymer_chains", reportDict) - force_list.append( - bond_force_func(sim_object, bonds, **bond_force_kwargs) - ) + if bond_force_func is not None: + force_list.append( + bond_force_func(sim_object, bonds, **bond_force_kwargs) + ) if angle_force_func is not None: force_list.append(