Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identity decorator exception #219

Closed
eufrizz opened this issue Aug 10, 2023 · 1 comment
Closed

Identity decorator exception #219

eufrizz opened this issue Aug 10, 2023 · 1 comment

Comments

@eufrizz
Copy link
Contributor

eufrizz commented Aug 10, 2023

Note about Euler angles
Before filing any bug report that involves Euler angles please read this page, especially the last section which details how to open a bug report involving Euler angles. In short, you need to understand what the code is doing. Just because the code did something different from what you expected, that doesn't mean the code is wrong; more likely your expectation was wrong.

Describe the bug
When running the library, the following error is thrown:

----> 1 quaternion.calculus.fd_derivative(c, t)

/home/user/catkin_ws/src/quaternion/src/quaternion/calculus.py in fd_derivative(f, t)
     21     dfdt = np.empty_like(f)
     22     if (f.ndim == 1):
---> 23         _derivative(f, t, dfdt)
     24     elif (f.ndim == 2):
     25         _derivative_2d(f, t, dfdt)

TypeError: _identity_decorator_inner() takes 1 positional argument but 3 were given

To Reproduce
Provide a minimal code example that allows this bug to be reproduced. If relevant, fill out the code sample below with something that demonstrates your problem.

import quaternion.calculus

c = np.array((np.quaternion(1, 0, 0, 0), np.quaternion(0.9, 0.1, 0, 0), np.quaternion(0.8, 0.2, 0, 0), np.quaternion(0.7, 0.2, 0.1, 0), np.quaternion(0.7, 0.2, 0.1, 0)))
t = np.array([0, 1, 2, 3, 4])
quaternion.calculus.fd_derivative(c, t)

Expected behavior
Expect the module to run without exceptions

Environment (please complete the following information):

  • OS, including version: Ubuntu 18.04
  • Installation method (conda, pip, or compiled from source): pip, Python 3.6.9
  • Numpy version (use np.version.version): '1.19.5'
  • Quaternion version (use quaternion.__version__): '2022.4.3'

Additional context
Add any other context about the problem here.

@moble
Copy link
Owner

moble commented Dec 1, 2023

Closed by #220

Thanks @eufrizz!

@moble moble closed this as completed Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants