Beispiel #1
0
 def den(self, r, pars):
     '''Calculates density'''
     if self.rin is None:
         # Need to deprojcet surf to get den:
         return numden(r, pars, self.dsurf)
     else:
         # Need to interpolate input array:
         return interp(r, self.rin, self.denin, right=0)
Beispiel #2
0
 def den(self,r,pars):
     '''Calculates density'''
     if self.rin is None:
         # Need to deprojcet surf to get den:
         return numden(r,pars,self.dsurf)
     else:
         # Need to interpolate input array:
         return interp(r,self.rin,self.denin,right=0)
Beispiel #3
0
 def den(self, r):
     '''Calculates density'''
     return numden(r,self)
Beispiel #4
0
 def den(self, r):
     '''Calculates density'''
     return numden(r, self)