Skip to content

Commit

Permalink
Some times there are coupled entities but there are not motions
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguinariojoe committed Jun 27, 2024
1 parent a8f86a4 commit c0b5b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/.mdf_verification/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def plot(ref, data, fpath):
# Get the NDoFs and check if the motions are right
ndofs = moordyn.NCoupledDOF(system)
motions = None
if md["InputsMode"]:
if md["InputsMode"] and md["InputsFile"]:
motions = interpolate_motions(read_motions(md["InputsFile"]), md)
assert motions.shape[0] - 1 == ndofs
# Run the simulation
Expand Down

0 comments on commit c0b5b67

Please sign in to comment.