Error messages

Former-commit-id: 7da5d92e9022ab90989333990b4ed4193540f70c
This commit is contained in:
Marek Nečada 2017-07-08 10:39:49 +03:00
parent 2ba5df5ce5
commit 5249978f45
1 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ for op in ops:
TMatrix_contribs[i] = qpms.apply_matrix_left(rot,qpms.apply_matrix_left(rotinv, TMatrices[:,t], -3),-1) TMatrix_contribs[i] = qpms.apply_matrix_left(rot,qpms.apply_matrix_left(rotinv, TMatrices[:,t], -3),-1)
TMatrices[:,t] = np.sum(TMatrix_contribs, axis=0) / rotN TMatrices[:,t] = np.sum(TMatrix_contribs, axis=0) / rotN
else: else:
raise raise ValueError('\'%d\' is not an implemented symmetry operation' % op[2])
elif op[1] == 'tr': elif op[1] == 'tr':
mCN = reCN.match(op[2]) # Fuck van Rossum for not having assignments inside expressions mCN = reCN.match(op[2]) # Fuck van Rossum for not having assignments inside expressions
if op[2] == 'σ_z': if op[2] == 'σ_z':
@ -269,7 +269,7 @@ for op in ops:
rotinv = qpms.WignerD_yy_fromvector(lMax, np.array([0,0,-rotangle])) rotinv = qpms.WignerD_yy_fromvector(lMax, np.array([0,0,-rotangle]))
TMatrices[:,t] = qpms.apply_matrix_left(rot, qpms.apply_matrix_left(rotinv, TMatrices[:,t], -3),-1) TMatrices[:,t] = qpms.apply_matrix_left(rot, qpms.apply_matrix_left(rotinv, TMatrices[:,t], -3),-1)
else: else:
raise raise ValueError('\'%d\' is not an implemented T-matrix transformation operation' % op[2])
elif op[1] == 'copy': elif op[1] == 'copy':
raise # not implemented raise # not implemented
elif op[1] == 'mult': elif op[1] == 'mult':