|
1 | 1 | ###################################################################### |
2 | 2 | # BioSimSpace: Making biomolecular simulation a breeze! |
3 | 3 | # |
4 | | -# Copyright: 2017-2023 |
| 4 | +# Copyright: 2017-2024 |
5 | 5 | # |
6 | 6 | # Authors: Lester Hedges <lester.hedges@gmail.com> |
7 | 7 | # |
@@ -174,7 +174,7 @@ def __init__(self, system, restraint_dict, temperature, restraint_type="Boresch" |
174 | 174 | for key in ["kthetaA", "kthetaB", "kphiA", "kphiB", "kphiC"]: |
175 | 175 | if restraint_dict["force_constants"][key] != 0: |
176 | 176 | dim = restraint_dict["force_constants"][key].dimensions() |
177 | | - if dim != (-2, 0, 2, 1, -1, 0, -2): |
| 177 | + if dim != (1, 2, -2, 0, 0, -1, -2): |
178 | 178 | raise ValueError( |
179 | 179 | f"restraint_dict['force_constants']['{key}'] must be of type " |
180 | 180 | f"'BioSimSpace.Types.Energy'/'BioSimSpace.Types.Angle^2'" |
@@ -202,7 +202,7 @@ def __init__(self, system, restraint_dict, temperature, restraint_type="Boresch" |
202 | 202 | # Test if the force constant of the bond r1-l1 is the correct unit |
203 | 203 | # Such as kcal/mol/angstrom^2 |
204 | 204 | dim = restraint_dict["force_constants"]["kr"].dimensions() |
205 | | - if dim != (0, 0, 0, 1, -1, 0, -2): |
| 205 | + if dim != (1, 0, -2, 0, 0, -1, 0): |
206 | 206 | raise ValueError( |
207 | 207 | "restraint_dict['force_constants']['kr'] must be of type " |
208 | 208 | "'BioSimSpace.Types.Energy'/'BioSimSpace.Types.Length^2'" |
@@ -290,13 +290,13 @@ def __init__(self, system, restraint_dict, temperature, restraint_type="Boresch" |
290 | 290 | "'BioSimSpace.Types.Length'" |
291 | 291 | ) |
292 | 292 | if not single_restraint_dict["kr"].dimensions() == ( |
| 293 | + 1, |
293 | 294 | 0, |
| 295 | + -2, |
294 | 296 | 0, |
295 | 297 | 0, |
296 | | - 1, |
297 | 298 | -1, |
298 | 299 | 0, |
299 | | - -2, |
300 | 300 | ): |
301 | 301 | raise ValueError( |
302 | 302 | "distance_restraint_dict['kr'] must be of type " |
|
0 commit comments