Пример #1
0
 def onMass(self, event):
     print(" ")
     print("find DM mass and star mass (if present)")
     nstop = mys.get_nstop()
     d = mys.d(nstop)
     print("m_dm = ")
     my.run_command("get_sphere_dm -inp "+d+" -xc 0.5 -yc 0.5 -zc 0.5 -rc 0.001|head -n1|cut -d'.' -f1,2|rev|cut -d' ' -f2-|rev")
     print("m_star = ")
     my.run_command("get_sphere_stars -inp "+d+" -xc 0.5 -yc 0.5 -zc 0.5 -rc 0.01|head -n1|cut -d'.' -f1,2|rev|cut -d' ' -f2-|rev")
     my.done()
Пример #2
0
 def onGet3Halos(self, event):
     get_halopos_rezoom.snap(mys.get_nstop())
     my.done()
Пример #3
0
 def onGet3Halos(self, event):
     get_halopos_rezoom.snap(mys.get_nstop())
     my.done()