Ejemplo n.º 1
0
def get_sequence_starts_from_folder(folder):
    filepaths = files.get_all_msmt_filepaths(folder)

    starts = 0
    for f in filepaths:
        start += get_sequence_starts(f)

    return starts
Ejemplo n.º 2
0
def get_sequence_starts_from_folder(folder):
    filepaths = files.get_all_msmt_filepaths(folder)
    
    starts = 0
    for f in filepaths:
        start += get_sequence_starts(f)

    return starts
Ejemplo n.º 3
0
def get_photon_hists_from_folder(folder, **kw):
    '''
    return the cumulative photon histogram from all data contained in a folder
    (all sub-levels are searched).
    '''
    filepaths = files.get_all_msmt_filepaths(folder)
    for i, f in enumerate(filepaths):
        if i == 0:
            (h0, b0), (h1, b1) = get_photon_hist(f, **kw)
        else:
            (_h0, _b0), (_h1, _b1) = get_photon_hist(f, **kw)
            h0 += _h0
            h1 += _h1
    return (h0, b0), (h1, b1)
Ejemplo n.º 4
0
def get_photon_hists_from_folder(folder, **kw):
    '''
    return the cumulative photon histogram from all data contained in a folder
    (all sub-levels are searched).
    '''
    filepaths = files.get_all_msmt_filepaths(folder)
    for i,f in enumerate(filepaths):
        if i == 0:
            (h0,b0),(h1,b1) = get_photon_hist(f, **kw)
        else:
            (_h0,_b0),(_h1,_b1) = get_photon_hist(f, **kw)
            h0 += _h0
            h1 += _h1
    return (h0, b0), (h1, b1)