You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, it's true that this doesn't work. Perhaps the documentation could be clearer, but t is supposed to be given as an argument, not a keyword argument:
Sorry for the late reply. I've created a PR #569 about this.
I use args= [kwargs.pop('t')] to mimic the case where t is passed as args.
I tried to run all the tests in tests/test_orbit.py but it seems even with the unchanged code some tests still fail. I am not sure whether this is expected.
Don't worry about that error, I think it's unrelated to the change (and all the CI tests pass). I think I've encountered this locally before as well and don't quite remember what the issue was. I think it might be that you don't have the C extensions compiled and then the actionAngle method used in that test falls back onto a Python version that does not have all features, resulting in missing attributes.
馃悰 Bug
The below line will cause that passing single keyword parameter t will be ignored because
len(args)==0
is true in that casegalpy/galpy/orbit/Orbits.py
Line 4858 in 861c2f7
Reproducible example
Expected behavior
I expect the below lines should have the same output or the document states the t parameter will be ignored in this case.
The text was updated successfully, but these errors were encountered: