1
0

revert with old dimensions

This commit is contained in:
Thibault Barnouin
2021-11-18 20:10:14 +01:00
parent ff1c46df71
commit e076127f6d
6 changed files with 10 additions and 10 deletions

View File

@@ -23,10 +23,10 @@ class Body:
self.vp = np.zeros(3)
def __repr__(self): # Called upon "print(body)"
return r"Body of mass: {0:.2f} $M_\odot$, position: {1}, velocity: {2}".format(self.m, self.q, self.v)
return r"Body of mass: {0:.2f} $M_\odot$, position: {1}, velocity: {2}".format(self.m/Ms, self.q, self.v)
def __str__(self): # Called upon "str(body)"
return r"Body of mass: {0:.2f} $M_\odot$".format(self.m)
return r"Body of mass: {0:.2f} $M_\odot$".format(self.m/Ms)
class System(Body):