-
Notifications
You must be signed in to change notification settings - Fork 21
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
Wrong return type hint in parametric get_total_mass #69
Comments
In addition, the input order is different. For all the other functions, the length multiplier input comes before the densities. For this function only, it is inverted. At this point, I think it is safer to rename that method to |
Interestingly, the test in https://github.com/ami-iit/adam/blob/2f18e9e737beeb00a4687a37d10a4822d0e5959b/tests/parametric/test_CasADi_computations_parametric.py#L127C62-L127C78 does not fail. I guess this is because the total mass is bilinear on the density and length, so maybe inverting their order does not change 🤔 |
I fixed it in #72 |
I noticed that the parametric version of
get_total_mass
hasfloat
as return type hint, but it returns a Casadi function instead.Moreover, there are two consecutive
return
. Seeadam/src/adam/parametric/casadi/computations_parametric.py
Lines 272 to 275 in 2f18e9e
cc @CarlottaSartore
The text was updated successfully, but these errors were encountered: