Exemplo n.º 1
0
if data == "TMB2":
    dates = _rt.date_range(start='7/13/2021', end='10/30/2021')
    #dates = _rt.date_range(start='7/13/2021', end='07/27/2021')
    #dates = _rt.date_range(start='7/27/2021', end='08/20/2021')
    #dates = _rt.date_range(start='07/27/2021', end='08/20/2021')
    #dates = _rt.date_range(start='07/13/2021', end='07/27/2021')
    #partIDs, dats, cnstrs = _rt.filterRPSdats(data, dates, visits=[1], domainQ=_rt._TRUE_AND_FALSE_, demographic=_rt._TRUE_AND_FALSE_, mentalState=_rt._TRUE_AND_FALSE_, minIGI=800, MinWinLossRat=0.7, has_useragent=True, has_start_and_end_times=True, has_constructor=True, blocks=1)
    #partIDs, dats, cnstrs = _rt.filterRPSdats(data, dates, visits=[1], domainQ=_rt._TRUE_ONLY_, demographic=_rt._TRUE_AND_FALSE_, mentalState=_rt._TRUE_AND_FALSE_, minIGI=800, MinWinLossRat=0.7, has_useragent=True, has_start_and_end_times=True, has_constructor=True, blocks=1)
    partIDs, dats, cnstrs = _rt.filterRPSdats(
        data,
        dates,
        visits=[1],
        domainQ=(_rt._TRUE_ONLY_ if look_at_AQ else _rt._TRUE_AND_FALSE_),
        demographic=_rt._TRUE_AND_FALSE_,
        mentalState=_rt._TRUE_AND_FALSE_,
        minIGI=50,
        maxIGI=30000,
        MinWinLossRat=0.7,
        has_useragent=True,
        has_start_and_end_times=True,
        has_constructor=True,
        blocks=1)
    #  MinWinLossRat=0.3  ==>  net loss of -60 included.  Saw player like this
    #  at Neurable.  It is not an unreasonable
    #partIDs, dats, cnstrs = _rt.filterRPSdats(data, dates, visits=[1], domainQ=(_rt._TRUE_ONLY_ if look_at_AQ else _rt._TRUE_AND_FALSE_), demographic=_rt._TRUE_AND_FALSE_, mentalState=_rt._TRUE_AND_FALSE_, minIGI=5, maxIGI=800, MinWinLossRat=0.05, has_useragent=True, has_start_and_end_times=True, has_constructor=True, blocks=1)

A1 = []
show_shuffled = False
process_keyval_args(globals(), sys.argv[1:])
#######################################################
Exemplo n.º 2
0


#  (12)
#  (13)

#  possible 2-patterns
#
oldnew   = "new"

if oldnew == "old":
    dates = _rt.date_range(start='7/13/2021', end='08/17/2021')
elif oldnew == "new":
    dates = _rt.date_range(start='08/18/2021', end='10/30/2021')

partIDs, dats, cnstrs = _rt.filterRPSdats("TMB1", dates, visits=[1], domainQ=_rt._TRUE_ONLY_, demographic=_rt._TRUE_AND_FALSE_, mentalState=_rt._TRUE_AND_FALSE_, minIGI=300, maxIGI=30000, MinWinLossRat=0., has_useragent=True, has_start_and_end_times=True, has_constructor=True, blocks=4)

pid = 0

netwins  = _N.empty((4, len(partIDs)))
win_aft_win  = _N.empty((4, len(partIDs)))
win_aft_los  = _N.empty((4, len(partIDs)))
win_aft_tie  = _N.empty((4, len(partIDs)))
netwin_aft_win  = _N.empty((4, len(partIDs)))
netwin_aft_los  = _N.empty((4, len(partIDs)))
netwin_aft_tie  = _N.empty((4, len(partIDs)))
tie_aft_win  = _N.empty((4, len(partIDs)))
tie_aft_los  = _N.empty((4, len(partIDs)))
tie_aft_tie  = _N.empty((4, len(partIDs)))
los_aft_win  = _N.empty((4, len(partIDs)))
los_aft_los  = _N.empty((4, len(partIDs)))
Exemplo n.º 3
0
            shr = shr.rjust(2, '0')
            smn = "%d" % mn
            smn = smn.rjust(2, '0')

            if os.access("%(fld)s/%(dt)s_%(hr)s%(mn)s-00" % {"dt" : syr, "hr" : shr, "mn" : smn, "fld" : flder}, os.F_OK):
                print("Destination %(fld)s/%(dt)s_%(hr)s%(mn)s-00 exists." % {"dt" : syr, "hr" : shr, "mn" : smn, "fld" : flder})
            #print("%(fld)s/%(pIDdir)s"  % {"fld" : flder, "pIDdir" : pIDdir})
            os.rename("%(fld)s/%(pIDdir)s"  % {"fld" : flder, "pIDdir" : pIDdir}, "%(fld)s/%(dt)s_%(hr)s%(mn)s-00" % {"dt" : syr, "hr" : shr, "mn" : smn, "fld" : flder})
            mn += 5
            if mn > 55:
                mn = 0
                hr += 1

#  now go to read_taisen.py
if expt == "TMB1":
    fns, dats, cnstrctrs = _rt.filterRPSdats(expt, dates, visits=[1], domainQ=_rt._TRUE_AND_FALSE_, demographic=_rt._TRUE_AND_FALSE_, mentalState=_rt._TRUE_AND_FALSE_, minIGI=20, maxIGI=90000, MinWinLossRat=0, has_useragent=True, has_start_and_end_times=True, has_constructor=True, blocks=4)
else:
    #  visits=[1, 2] for reliability
    #  visits=[1, ]  for biomark
    fns, dats, cnstrs = _rt.filterRPSdats(expt, dates, visits=[1, ], domainQ=(_rt._TRUE_AND_FALSE_), demographic=_rt._TRUE_AND_FALSE_, mentalState=_rt._TRUE_AND_FALSE_, min_meanIGI=300, max_meanIGI=20000, minIGI=10, maxIGI=30000, MinWinLossRat=0., has_useragent=True, has_start_and_end_times=True, has_constructor=True, blocks=1)    
    #fns, dats, cnstrctrs = _rt.filterRPSdats(expt, dates, visits=[1, ], domainQ=_rt._TRUE_AND_FALSE_, demographic=_rt._TRUE_AND_FALSE_, mentalState=_rt._TRUE_AND_FALSE_, minIGI=20, maxIGI=90000, MinWinLossRat=0, has_useragent=True, has_start_and_end_times=True, has_constructor=True, blocks=1)

fp = open("%sfns.txt" % expt, "w")

for fn in fns:
    fp.write("%s\n" % fn)
fp.close()
    
print("Wrote %sfns.txt" % expt)

if expt == "TMB2":