Skip to content

Commit

Permalink
allowed forcekit w/o bondforce
Browse files Browse the repository at this point in the history
  • Loading branch information
mimakaev authored Dec 7, 2019
1 parent 7d71390 commit 0296fa6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions polychrom/forcekits.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0296fa6

Please sign in to comment.