verbosity argument for dispersion_chunks.py, cleanup
Former-commit-id: b95ed728b5aac6114d76ab3a3c563fa19e9016e6
This commit is contained in:
parent
d2653e6a6d
commit
72840f929a
|
@ -31,6 +31,7 @@ parser.add_argument('--chunklen', action='store', type=int, default=1000, help='
|
||||||
parser.add_argument('--lMax', action='store', type=int, help='Override lMax from the TMatrix file')
|
parser.add_argument('--lMax', action='store', type=int, help='Override lMax from the TMatrix file')
|
||||||
#TODO some more sophisticated x axis definitions
|
#TODO some more sophisticated x axis definitions
|
||||||
parser.add_argument('--gaussian', action='store', type=float, metavar='σ', help='Use a gaussian envelope for weighting the interaction matrix contributions (depending on the distance), measured in unit cell lengths (?) FIxME).')
|
parser.add_argument('--gaussian', action='store', type=float, metavar='σ', help='Use a gaussian envelope for weighting the interaction matrix contributions (depending on the distance), measured in unit cell lengths (?) FIxME).')
|
||||||
|
parser.add_argument('--verbose', '-v', action='count')
|
||||||
popgrp=parser.add_argument_group(title='Operations')
|
popgrp=parser.add_argument_group(title='Operations')
|
||||||
popgrp.add_argument('--tr', dest='ops', action=make_action_sharedlist('tr', 'ops'), default=list()) # the default value for dest can be set once
|
popgrp.add_argument('--tr', dest='ops', action=make_action_sharedlist('tr', 'ops'), default=list()) # the default value for dest can be set once
|
||||||
popgrp.add_argument('--tr0', dest='ops', action=make_action_sharedlist('tr0', 'ops'))
|
popgrp.add_argument('--tr0', dest='ops', action=make_action_sharedlist('tr0', 'ops'))
|
||||||
|
@ -53,6 +54,7 @@ maxlayer=pargs.maxlayer
|
||||||
hexside=pargs.hexside
|
hexside=pargs.hexside
|
||||||
eVfreq = pargs.eVfreq
|
eVfreq = pargs.eVfreq
|
||||||
freq = eVfreq*eV/hbar
|
freq = eVfreq*eV/hbar
|
||||||
|
verbose=pargs.verbose
|
||||||
|
|
||||||
TMatrix_file = pargs.TMatrix
|
TMatrix_file = pargs.TMatrix
|
||||||
|
|
||||||
|
@ -97,21 +99,6 @@ nelem = len(my)
|
||||||
if pargs.lMax: #force commandline specified lMax
|
if pargs.lMax: #force commandline specified lMax
|
||||||
TMatrices_orig = TMatrices_orig[...,0:nelem,:,0:nelem]
|
TMatrices_orig = TMatrices_orig[...,0:nelem,:,0:nelem]
|
||||||
|
|
||||||
ž = np.arange(2*nelem)
|
|
||||||
tž = ž // nelem
|
|
||||||
mž = my[ž%nelem]
|
|
||||||
nž = ny[ž%nelem]
|
|
||||||
TEž = ž[(mž+nž+tž) % 2 == 0]
|
|
||||||
TMž = ž[(mž+nž+tž) % 2 == 1]
|
|
||||||
|
|
||||||
č = np.arange(2*2*nelem)
|
|
||||||
žč = č % (2* nelem)
|
|
||||||
tč = tž[žč]
|
|
||||||
mč = mž[žč]
|
|
||||||
nč = nž[žč]
|
|
||||||
TEč = č[(mč+nč+tč) % 2 == 0]
|
|
||||||
TMč = č[(mč+nč+tč) % 2 == 1]
|
|
||||||
|
|
||||||
TMatrices = np.array(np.broadcast_to(TMatrices_orig[:,nx,:,:,:,:],(len(freqs_orig),2,2,nelem,2,nelem)) )
|
TMatrices = np.array(np.broadcast_to(TMatrices_orig[:,nx,:,:,:,:],(len(freqs_orig),2,2,nelem,2,nelem)) )
|
||||||
|
|
||||||
#TMatrices[:,:,:,:,:,ny==3] *= factor13inc
|
#TMatrices[:,:,:,:,:,ny==3] *= factor13inc
|
||||||
|
@ -223,7 +210,7 @@ for chunki in range(chunkn):
|
||||||
klist = klist_full[chunki * chunklen : (chunki + 1) * chunklen]
|
klist = klist_full[chunki * chunklen : (chunki + 1) * chunklen]
|
||||||
|
|
||||||
svdres = qpms.hexlattice_zsym_getSVD(lMax=lMax, TMatrices_om=TMatrices_om, epsilon_b=epsilon_b, hexside=hexside, maxlayer=maxlayer,
|
svdres = qpms.hexlattice_zsym_getSVD(lMax=lMax, TMatrices_om=TMatrices_om, epsilon_b=epsilon_b, hexside=hexside, maxlayer=maxlayer,
|
||||||
omega=freq, klist=klist, gaussianSigma=gaussianSigma, onlyNmin=False)
|
omega=freq, klist=klist, gaussianSigma=gaussianSigma, onlyNmin=False, verbose=verbose)
|
||||||
|
|
||||||
#((svUfullTElist, svSfullTElist, svVfullTElist), (svUfullTMlist, svSfullTMlist, svVfullTMlist)) = svdres
|
#((svUfullTElist, svSfullTElist, svVfullTElist), (svUfullTMlist, svSfullTMlist, svVfullTMlist)) = svdres
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue