TMatrix is now subclass of TMatrixSpec
Former-commit-id: 05afa77c95034345e2ac8831937a7142a82f4c67
This commit is contained in:
parent
5ef938ac11
commit
39d4a8952e
|
@ -5,7 +5,7 @@ from scipy import interpolate
|
||||||
from scipy.constants import hbar, e as eV, pi, c
|
from scipy.constants import hbar, e as eV, pi, c
|
||||||
from qpms_c import get_mn_y, get_nelem
|
from qpms_c import get_mn_y, get_nelem
|
||||||
ň = np.newaxis
|
ň = np.newaxis
|
||||||
from .types import NormalizationT
|
from .types import NormalizationT, TMatrixSpec
|
||||||
|
|
||||||
# Transformations of spherical bases
|
# Transformations of spherical bases
|
||||||
def WignerD_mm(l, quat):
|
def WignerD_mm(l, quat):
|
||||||
|
@ -337,9 +337,12 @@ def get_TMatrix_fromspec(tmatrix_spec):
|
||||||
raise ValueError('not implemented: ', optype)
|
raise ValueError('not implemented: ', optype)
|
||||||
return (TMatrices, freqs, lMax)
|
return (TMatrices, freqs, lMax)
|
||||||
|
|
||||||
class TMatrix(object):
|
class TMatrix(TMatrixSpec):
|
||||||
def __init__(self, tmatrix_spec):
|
def __init__(self, tmatrix_spec):
|
||||||
self.specification = tmatrix_spec
|
#self.specification = tmatrix_spec
|
||||||
|
self.lMax_override = tmatrix_spec.lMax_override
|
||||||
|
self.tmatrix_path = tmatrix_spec.tmatrix_path
|
||||||
|
self.ops = tmatrix_spec.ops
|
||||||
self.tmdata, self.freqs, self.lMax = get_TMatrix_fromspec(tmatrix_spec)
|
self.tmdata, self.freqs, self.lMax = get_TMatrix_fromspec(tmatrix_spec)
|
||||||
self.nelem = get_nelem(self.lMax)
|
self.nelem = get_nelem(self.lMax)
|
||||||
#self._interpolators = dict()
|
#self._interpolators = dict()
|
||||||
|
|
Loading…
Reference in New Issue