Skip to content

Commit

Permalink
corrected behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
csbrasnett committed Nov 3, 2023
1 parent 9104cec commit 1617e84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vermouth/processors/apply_rubber_band.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ def compute_force_constants(distance_matrix, lower_bound, upper_bound,
np.fill_diagonal(constants, 0)
constants *= base_constant
constants[constants < minimum_force] = 0
constants[constants > base_constant] = 0
constants[constants > base_constant] = base_constant
constants[distance_matrix > upper_bound] = 0
constants[distance_matrix < lower_bound] = 0
return constants


Expand Down

0 comments on commit 1617e84

Please sign in to comment.