Import investigator package of the PyOTIC software


In [ ]:
# Import os to easily join names of filepaths
import os

# Add the path of the PyOTIC Software to the system path
# Adjust this path to where the PyOTIC Software package is located
import sys
sys.path.append('../../')

#Load investigator package
import pyoti
pyoti.info()

#Create an experiment and open a new temporary experiment dbfile
experiment = pyoti.open_experiment()

Create experiment file (or open previously saved one)


In [ ]:
# Choose the path the data should be loaded from
#
# datadir: The path where the data is located
# datafile: The name of the file that contains the data.
datadir = '../data/'
datafile = 'B01.bin'

In [ ]:
# Define a name for the record (defaults to 'default')
name='alpha'

# Choose the file, where standard values for the Record are defined
cfgfile = '../pyoti/etc/record/ASWAD.cfg'

experiment.create_record(name=name, cfgfile=cfgfile, filename=datafile, directory=datadir)

In [ ]:
name = 'used'
group = 'selection'
parent = 'alpha'

experiment.add_group(name, parent, group_type=group)

Simple and fast step detection for SNR >> 1.0


In [ ]:
# Select region to get data from
region = 'used'

# Get region and motion object, to detect the steps and dwells
region = experiment.region(region)
motion = pyoti.create_motion(region=region, resolution=40000, impose_dwell_time=4.0, shift_time=0.1)

# If you want to include the very first and the very last plateau, uncomment
#motion.include_first_last_plateau=True

# Show the autodetected plateaus
motion.init_rfig(legend=True)