예제 #1
0
def loadData(data_source, loc, run, indexes, __text__=None, __prog__=None):

    if __text__ is not None:
        __text__.emit("Decoding File")

    url = data_source.getURL(loc, run)
    decoder = data_source.getDecoder(loc, run)
    dec = decoder(url)

    if __text__ is not None:
        __text__.emit("Creating Profiles")

    dates = dec.getProfileTimes(indexes)
    profs = dec.getProfiles(indexes, __prog__)

    return profs, dates
예제 #2
0
def loadData(data_source, loc, run, indexes, __text__=None, __prog__=None):
    """
    Loads the data from a remote source. Has hooks for progress bars.
    """
    if __text__ is not None:
        __text__.emit("Decoding File")

    url = data_source.getURL(loc, run)
    decoder = data_source.getDecoder(loc, run)
    dec = decoder(url)

    if __text__ is not None:
        __text__.emit("Creating Profiles")

    profs = dec.getProfiles(indexes=indexes)
    return profs
예제 #3
0
def loadData(data_source, loc, run, indexes, __text__=None, __prog__=None):

    if __text__ is not None:
        __text__.emit("Decoding File")

    url = data_source.getURL(loc, run)
    decoder = data_source.getDecoder(loc, run)
    dec = decoder(url)

    if __text__ is not None:
        __text__.emit("Creating Profiles")

    dates = dec.getProfileTimes(indexes)
    profs = dec.getProfiles(indexes, __prog__)

    return profs, dates