예제 #1
0
            "width": .5, "alpha": .15, "dpi": 1*200, "legend": True,
            "aspect": .25, "colors": CLR, "xRange": [0, (365*5)/2],
            "yRange": YRAN
        }
    STYLE['aspect'] = monet.scaleAspect(1, STYLE)
    tS = datetime.now()
    fun.printExperimentHead(PT_ROT, PT_IMG, PT_PRE, tS, 'Traces')

    ###########################################################################
    # Load preprocessed files lists
    ###########################################################################
    tyTag = ('sum', 'rep')

    if FZ:
        fLists = list(zip(*[fun.getFilteredFiles(
                PT_PRE+'*_00_*'+AOI+'*'+tp+'*',
                PT_PRE+'*'+AOI+'*'+tp+'*') for tp in tyTag]
            ))
    else:
        fLists = list(zip(
                *[sorted(glob(PT_PRE+'*'+AOI+'*'+tp+'*')) for tp in tyTag]
            ))

    ###########################################################################
    # Process files
    ###########################################################################

    (xpNum, digs) = monet.lenAndDigits(fLists)
    msg = '* Analyzing ({}/{})'

    sumDta = {}
예제 #2
0
 }
 STYLE['aspect'] = monet.scaleAspect(1, STYLE)
 tS = datetime.now()
 aux.printExperimentHead(PT_ROT, PT_IMG, PT_PRE, tS, 'PstTraces')
 ###########################################################################
 # Load postprocessed files
 ###########################################################################
 pstPat = PT_MTR + AOI + '_{}_' + QNT + '_qnt.csv'
 pstFiles = [pstPat.format(i) for i in ('TTI', 'TTO', 'WOP', 'MNX', 'RAP')]
 (dfTTI, dfTTO, dfWOP, dfMNX, _) = [pd.read_csv(i) for i in pstFiles]
 ###########################################################################
 # Load preprocessed files lists
 ###########################################################################
 repFiles = glob(PT_PRE + '*' + AOI + '*' + 'srp' + '*')
 if FZ:
     fLists = fun.getFilteredFiles(PT_PRE + '*_00_*' + AOI + '*srp.bz',
                                   PT_PRE + '*' + AOI + '*' + '*srp.bz')
 else:
     fLists = glob(PT_PRE + '*' + AOI + '*' + '*srp.bz')
 ###########################################################################
 # Iterate through experiments
 ###########################################################################
 msg = '* Plotting ({}/{})'
 filesNum = len(repFiles)
 for (i, repFile) in enumerate(repFiles):
     print(msg.format(i + 1, filesNum), end='\r')
     (repDta, xpid) = (pkl.load(repFile),
                       fun.getXpId(repFile, [1, 2, 3, 4, 5, 6, 8]))
     xpRow = [
         da.filterDFWithID(i, xpid) for i in (dfTTI, dfTTO, dfWOP, dfMNX)
     ]
     (tti, tto, wop) = [float(row[str(THS)]) for row in xpRow[:3]]
예제 #3
0
     "colors": CLR,
     "xRange": [0, (365 * 5) / 3],
     "yRange": (0, YRAN[1] * 1.5)
 }
 print(CLR)
 STYLE['aspect'] = monet.scaleAspect(1, STYLE)
 tS = datetime.now()
 aux.printExperimentHead(PT_ROT, PT_IMG, PT_PRE, tS, 'PreTraces ' + AOI)
 ###########################################################################
 # Load preprocessed files lists
 ###########################################################################
 tyTag = ('sum', 'srp')
 if FZ:
     fLists = list(
         zip(*[
             fun.getFilteredFiles(PT_PRE + '*_00_*' + AOI + '*' + tp +
                                  '*', PT_PRE + '*' + AOI + '*' + tp + '*')
             for tp in tyTag
         ]))
 else:
     fLists = list(
         zip(*[
             sorted(glob(PT_PRE + '*' + AOI + '*' + tp + '*'))
             for tp in tyTag
         ]))
 ###########################################################################
 # Process files
 ###########################################################################
 (xpNum, digs) = monet.lenAndDigits(fLists)
 msg = '* Analyzing ({}/{})'
 for i in range(0, xpNum):
     print(msg.format(str(i + 1).zfill(digs),