Fix bug in example three_link_conical_pendulum
#481
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix bug causing error, traceback shown below.
Error: wrong argument ordering and argument keyword not used.
traceback (most recent call last):
File "/home/alain/test/physique/Sympy/Examples/three_link_conical_pendulum/visualize.py", line 9, in
from derive import I, O, links, particles, q, u
File "/home/alain/test/physique/Sympy/Examples/three_link_conical_pendulum/derive.py", line 139, in
fr, frstar = kane.kanes_equations(forces, total_system)
File "/usr/lib/python3/dist-packages/sympy/physics/mechanics/kane.py", line 543, in kanes_equations
fr = self._form_fr(loads)
File "/usr/lib/python3/dist-packages/sympy/physics/mechanics/kane.py", line 283, in _form_fr
vel_list, f_list = _f_list_parser(fl, N)
File "/usr/lib/python3/dist-packages/sympy/physics/mechanics/functions.py", line 724, in _f_list_parser
vel_list, f_list = unzip(list(flist_iter()))
File "/usr/lib/python3/dist-packages/sympy/physics/mechanics/functions.py", line 711, in flist_iter
obj, force = pair
TypeError: cannot unpack non-iterable RigidBody object
Please edit below based on the type of PR. It is then the duty of reviewers to check off the items as they are completed. If any questions are not relevant to your particular pull request, a reviewer will simply check it off as done.
New Feature
commit message.
nosetests
) and on Travis CI.format.)
docs
directory)
pylint, to check your code)
Notes.
follow deprecation cycles.)
Bug Fix
commit message.
in the unit test.)
nosetests
) and on Travis CI.pylint, to check your code)
Notes.
follow deprecation cycles.)
Example
master
branch.docs/examples/
.docs/index.rst
.on build.
ipynb
andpy
download links are included.the problem.