Skip to content

Extremely Quick Start Guide for Peak Finding

GabePoel edited this page Jan 23, 2021 · 3 revisions

In an extreme rush? Lucky for you, there's an already set up configuration for you to work with. I promise you it will be better to manually go through and kajiggle parameters. But, if you just want to get a quick taste of stuff then you can use the following script:

from peak_finder import automatic as auto
from peak_finder import utilities as util

# You'll have to pick which tdms file you look at tho.
tdms_file = util.import_file()
f = tdms_file.f
r = tdms_file.r

parameters = auto.quick_analyze(f, r)
print(parameters)

Or if you don't want any machine learning, but just want to use the selection tool while also seeing the x and y data, there's a super easy way to run that as well.

from peak_finder.live_fitting import live_selection

parameters = live_selection(tdms_file)

Now that that's out of the way, let's go into how you actually do stuff.