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