After a bit of investigation I reached this line in the ICRF class:
def __sub__(self, body):
p = self.position.au - body.position.au
if self.velocity is None or body.velocity is None:
v = None
else:
v = body.velocity.au_per_d - self.velocity.au_per_d # <------ HERE
return ICRF(p, v, self.t)
Shouldn't the two terms be flipped? That is, self.velocity - body.velocity, as done for the position component above?
If it is actually a bug and you want, I can put together a PR with the fix and a test to check it.
Hi :)
I think I found a bug. Take this example:
It outputs:
After a bit of investigation I reached this line in the ICRF class:
Shouldn't the two terms be flipped? That is,
self.velocity - body.velocity
, as done for the position component above?If it is actually a bug and you want, I can put together a PR with the fix and a test to check it.