def createKernel( self, **kwds ): def getval(key): v = kwds.get(key) if v: return self._parse(v) return v kargs = dict( average_mass = getval('average_mass'), scattering_xs = getval('scattering_xs'), absorption_xs = getval('absorption_xs'), ) from mccomponents.sample.phonon \ import incoherentinelastic_kernel as f return f(None, **kargs)
def createKernel(self, **kwds): def getval(key): v = kwds.get(key) if v: return self._parse(v) return v kargs = dict( average_mass=getval('average_mass'), scattering_xs=getval('scattering_xs'), absorption_xs=getval('absorption_xs'), ) from mccomponents.sample.phonon \ import incoherentinelastic_kernel as f return f(None, **kargs)
def createKernel( self, **kwds ): dw_core = self._parse( kwds['dw_core'] ) def getval(key): v = kwds.get(key) if v: return self._parse(v) return v kargs = dict( scattering_xs = getval('scattering_xs'), absorption_xs = getval('absorption_xs'), ) from mccomponents.sample.phonon \ import incoherentelastic_kernel as f return f(dw_core, **kargs)
def createKernel(self, **kwds): dw_core = self._parse(kwds['dw_core']) def getval(key): v = kwds.get(key) if v: return self._parse(v) return v kargs = dict( scattering_xs=getval('scattering_xs'), absorption_xs=getval('absorption_xs'), ) from mccomponents.sample.phonon \ import incoherentelastic_kernel as f return f(dw_core, **kargs)
def createKernel( self, **kwds ): def getval(key): v = kwds.get(key) if v: return self._parse(v) return v Nmax = kwds.get('Nmax') if Nmax: Nmax = int(Nmax) kargs = dict( Qmax = getval('Qmax'), average_mass = getval('average_mass'), scattering_xs = getval('scattering_xs'), absorption_xs = getval('absorption_xs'), Nmax = Nmax, ) from mccomponents.sample.phonon \ import multiphonon_kernel as f return f(**kargs)
def createKernel( self, **kwds ): def getval(key): v = kwds.get(key) if v: return self._parse(v) return v Nmax = kwds.get('Nmax') if Nmax: Nmax = int(Nmax) kargs = dict( Qmax = getval('Qmax'), dQ = getval('dQ'), Emax = getval('Emax'), average_mass = getval('average_mass'), scattering_xs = getval('scattering_xs'), absorption_xs = getval('absorption_xs'), Nmax = Nmax, ) from mccomponents.sample.phonon \ import multiphonon_kernel as f return f(**kargs)
def createKernel( self, **kwds ): max_omega = self._parse( kwds['max-omega'] ) from mccomponents.sample.phonon \ import coherentinelastic_polyxtal_kernel as f return f(None, max_omega = max_omega)
def createKernel(self, **kwds): from mccomponents.sample.phonon \ import coherentinelastic_singlextal_kernel as f return f(None)
def createKernel( self, **kwds ): from mccomponents.sample.phonon \ import coherentinelastic_singlextal_kernel as f return f(None)
def createKernel(self, **kwds): max_omega = self._parse(kwds['max-omega']) from mccomponents.sample.phonon \ import coherentinelastic_polyxtal_kernel as f return f(None, max_omega=max_omega)