Beispiel #1
0
def main():
    # create measurement manager
    thoth = Thoth()

    # get list of files in example dir
    chdir('example')
    filenames = listdir('.')

    # open all the files
    thoth.open(filenames)

    # get the average, take smoothed derivative
    # smooth result, display it and try to fit bcs
    average = thoth.get_average()

    class Param:
        num_points = 8
        poly_degree = 4
        diff_order = 1
    param = Param()
    didv = average.compute_savitzky(param, interactive=False)
    didv_smoothed = didv.compute_wiener()

    if PREVIEW:
        thoth.create_window(didv_smoothed)
        thoth.create_window(average)
    fit = didv_smoothed.fit_bcs()
    print fit.get_values()
Beispiel #2
0
def main():
    # create measurement manager
    thoth = Thoth()

    # get list of files in example dir
    chdir('example')
    filenames = listdir('.')

    # open all the files
    thoth.open(filenames)

    # get the average, take smoothed derivative
    # smooth result, display it and try to fit bcs
    average = thoth.get_average()

    class Param:
        num_points = 8
        poly_degree = 4
        diff_order = 1

    param = Param()
    didv = average.compute_savitzky(param, interactive=False)
    didv_smoothed = didv.compute_wiener()

    if PREVIEW:
        thoth.create_window(didv_smoothed)
        thoth.create_window(average)
    fit = didv_smoothed.fit_bcs()
    print fit.get_values()
Beispiel #3
0
def main():
    # create measurement manager
    thoth = Thoth()

    # get list of files in example dir
    chdir('example')
    filenames = listdir('.')

    # open all the files
    thoth.open(filenames)

    # get the average, take smoothed derivative
    # smooth result, display it and try to fit bcs
    average = thoth.get_average()
    didv = average.compute_savitzky()
    didv_smoothed = didv.compute_wiener()
    thoth.create_window(didv_smoothed)
    didv_smoothed.fit_bcs()
def main():
    # create measurement manager
    thoth = Thoth()

    # get list of files in example dir
    chdir('example')
    filenames = listdir('.')

    # open all the files
    thoth.open(filenames)

    # get the average, take smoothed derivative
    # smooth result, display it and try to fit bcs
    average = thoth.get_average()
    didv = average.compute_savitzky()
    didv_smoothed = didv.compute_wiener()
    thoth.create_window(didv_smoothed)
    didv_smoothed.fit_bcs()
Beispiel #5
0
def main():
    # create measurement manager
    thoth = Thoth()

    items = []
    for path in sys.argv[1:]:
        
        # get list of files in example dir
        try:
            filenames = listdir(path)
        except OSError:
            print "Unable to find folder, ignore."
            continue

        # open all the files
        chdir(path)
        thoth.open(filenames)

        # get the average, take smoothed derivative
        # smooth result, display it and try to fit bcs
        average = thoth.get_average()

        smoothed = average.compute_gaussian(interactive=False)

        class Param:
            num_points = 4
            poly_degree = 3
            diff_order = 1
        param = Param()
        didv = smoothed.compute_savitzky(param, interactive=False)
        thoth.create_window(didv)
        if PREVIEW:
            thoth.create_window(average)
            didv_smoothed = didv.compute_wiener()
            thoth.create_window(didv_smoothed)
            thoth.create_window(didv.compute_gaussian(interactive=False))
            thoth.create_window(smoothed.compute_derivative())
            thoth.create_window(smoothed)

        items.append(didv)