-
Notifications
You must be signed in to change notification settings - Fork 0
/
FilenameFuns.py
executable file
·27 lines (18 loc) · 1.5 KB
/
FilenameFuns.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python
from RunParams import *
def Get2ptProp(icfg,thisgfosnum,ism):
return qpdir+CreateCfg(icfg,thisgfosnum)+'.t'+str(it)+'sm'+str(ism)+'k'+str(kud)+'.'+PropFormat
def Get2ptCorr(icfg,thisgfosnum,ism,jsm):
return (CreateCfdir3pt(thisgfosnum)+'twoptsm'+str(ism)+'si'+str(jsm)+
'/'+CreateCfg(icfg,thisgfosnum)+'.t'+str(it)+'sm'+str(ism)+'k'+str(kud)+'.'+PropFormat+'si'+str(jsm)+'.nucleon.u.2cf')
def Get2ptCorrFolders(icfg,thisgfosnum,ism,thisjsmlist):
return [(CreateCfdir3pt(thisgfosnum)+'twoptsm'+str(ism)+'si'+str(jsm)+'/') for jsm in thisjsmlist]
def Get2ptCorrOutput(icfg,thisgfosnum,ism,jsm):
return (CreateCfdir3pt(thisgfosnum)+'/'+CreateCfg(icfg,thisgfosnum)+'.t'+str(it)+'sm'+str(ism)+'k'+str(kud)+'.'+PropFormat+'si'+str(jsm)+'.nucleon.u.2cf')
def Get3ptCorr(icfg,thisgfosnum,ism,tsink,Projector,DS):
thisREvecDir = REvecFlag+'sm'+str(ism)+REvecFlag+'nD'+str(PoFShifts)+'GMA'+str(Projector)+'t'+str(tsink)+'p'+''.join(map(str,ppvec))+'.'+DS+'/'
return (CreateCfdir3pt(thisgfosnum)+thisREvecDir+CreateCfg(icfg,thisgfosnum)+'.t'+str(it)+'sm'+str(ism)+REvecFlag+'nD'+str(PoFShifts)+'GMA'+str(Projector)+
't'+str(tsink)+'p'+''.join(map(str,ppvec))+'.'+DS+'k'+str(kud)+'.'+PropFormat+'.3cf')
def Get3ptCorrFolder(icfg,thisgfosnum,ism,tsink,Projector,DS):
thisREvecDir = REvecFlag+'sm'+str(ism)+REvecFlag+'nD'+str(PoFShifts)+'GMA'+str(Projector)+'t'+str(tsink)+'p'+''.join(map(str,ppvec))+'.'+DS+'/'
return CreateCfdir3pt(thisgfosnum)+thisREvecDir