1
0

get back to full dimensions

This commit is contained in:
Thibault Barnouin
2022-01-11 16:20:05 +01:00
parent ae6898c605
commit 3259c0c7b5
8 changed files with 10 additions and 14 deletions

View File

@@ -26,10 +26,10 @@ class Body:
self.vp = np.zeros(3,dtype=np.longdouble)
def __repr__(self): # Called upon "print(body)"
return r"Body of mass: {0:.1e} $M_\odot$, position: {1}, velocity: {2}".format(self.m, self.q, self.v)
return r"Body of mass: {0:.1e} $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:.1e} $M_\odot$".format(self.m)
return r"Body of mass: {0:.1e} $M_\odot$".format(self.m/Ms)
@property
def p(self):