@@ -100,6 +100,8 @@ def get_matrices(
100100 to.
101101 force_partitioning (float): Factor to adjust force contributions,
102102 default is 0.5.
103+ customised_axes (bool): Whether to use customised axes for rotating
104+ forces.
103105
104106 Returns:
105107 force_matrix (np.ndarray): Accumulated force covariance matrix.
@@ -235,6 +237,8 @@ def get_combined_forcetorque_matrices(
235237 to.
236238 force_partitioning (float): Factor to adjust force contributions,
237239 default is 0.5.
240+ customised_axes (bool): Whether to use customised axes for rotating
241+ forces.
238242
239243 Returns:
240244 forcetorque_matrix (np.ndarray): Accumulated torque covariance matrix.
@@ -250,14 +254,15 @@ def get_combined_forcetorque_matrices(
250254 weighted_forces = [None for _ in range (number_beads )]
251255 weighted_torques = [None for _ in range (number_beads )]
252256
257+ # Create axes manager for custom axes
258+ axes_manager = AxesManager ()
259+
253260 # Calculate forces/torques for each bead
254261 for bead_index in range (number_beads ):
255262 bead = list_of_beads [bead_index ]
256-
257263 # Set up axes
258264 # translation and rotation use different axes
259265 # how the axes are defined depends on the level
260- axes_manager = AxesManager ()
261266 if level == "residue" and customised_axes :
262267 trans_axes , rot_axes , center , moment_of_inertia = (
263268 axes_manager .get_residue_axes (data_container , bead_index )
@@ -470,6 +475,8 @@ def get_weighted_torques(
470475 contributions (typically 0.5).
471476 moment_of_inertia : np.ndarray
472477 Moment of inertia (3,)
478+ customised_axes: bool
479+ Whether to use customised axes for rotating forces.
473480
474481 Returns
475482 -------
0 commit comments