def _get_Blow(self): # if there is a model for blow, apply it if 'blow_model' in self.vals.keys(): vals, model = change_model(self.Models, self.vals['blow_vals']) B = getattr(radmdls, self.vals['blow_model'])( vals=vals, temp=self._cal_dts['temp']) # else use the constant value else: B = self.vals['b'] return B
def get_B(self, nxc): if 'b_model' in self.vals.keys(): vals, model, author = change_model( self.Models, self.vals['blow_vals']) doping = abs(self._cal_dts['Na'] - self._cal_dts['Nd']) Blow = self._get_Blow() B = getattr(radmdls, self.vals['b_model'])( self.vals, nxc=nxc, doping=doping, temp=self._cal_dts['temp'], Blow=Blow ) else: B = self._get_Blow() return B
def get_B(self, nxc, **kwargs): self.calculationdetails = kwargs if 'b_model' in self.vals.keys(): vals, model, author = change_model(self.Models, self.vals['blow_vals']) doping = abs(self._cal_dts['Na'] - self._cal_dts['Nd']) Blow = self._get_Blow() B = getattr(radmdls, self.vals['b_model'])(self.vals, nxc=nxc, doping=doping, temp=self._cal_dts['temp'], Blow=Blow) else: B = self._get_Blow() return B