Exemple #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)
Exemple #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)
Exemple #3
0
 def den(self, r):
     '''Calculates density'''
     return numden(r,self)
Exemple #4
0
 def den(self, r):
     '''Calculates density'''
     return numden(r, self)