Skip to content

Commit 97afe04

Browse files
DavilaDawgandrewmorell
authored andcommitted
remove unnecessary conditional in integrated test
1 parent b75d464 commit 97afe04

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/simulation/dynamics/_GeneralModuleFiles/_UnitTestDynamics/test_effectorBranching_integrated.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -373,15 +373,7 @@ def effectorBranchingIntegratedTest(show_plots, stateEffector, isParent, dynamic
373373
rotAngMom_N = scObjectLog.totRotAngMomPntC_N # total rotational angular momentum about the total vehicle COM
374374
totAccumDV_N = datLog.TotalAccumDV_CN_N # total accumulated deltaV of the total vehicle COM
375375

376-
# Grab effector's inertial position
377-
if stateEffector in ["hingedRigidBodies", "dualHingedRigidBodies", "nHingedRigidBodies"]:
378-
r_ScN_N_log = np.zeros_like(inertialPropLog.r_BN_N)
379-
for i in range(len(inertialPropLog.sigma_BN)):
380-
sigmai_SN = inertialPropLog.sigma_BN[i, :] # MRP at timestep i and S is the parent frame not B
381-
dcm_NS = np.transpose(rbk.MRP2C(sigmai_SN))
382-
r_ScN_N_log[i, :] = inertialPropLog.r_BN_N[i, :] + (dcm_NS @ stateEffProps.r_PcP_P).flatten()
383-
else:
384-
r_ScN_N_log = inertialPropLog.r_BN_N
376+
r_ScN_N_log = inertialPropLog.r_BN_N
385377

386378
# Grab effector's attitude properties
387379
sigma_SN_log = inertialPropLog.sigma_BN

0 commit comments

Comments
 (0)