split_up_down¶
- Stoner.Util.split_up_down(data, col=None, folder=None)[source]¶
Split the DataFile data into several files where the column col is either rising or falling.
- Parameters:
data (
Stoner.Core.DataFile
) – object containign the data to be sortedcol (index) – is something that
Stoner.Core.DataFile.find_col()
can usefolder (
Stoner.Folders.DataFolder
or None) – if this is an instance ofStoner.Folders.DataFolder
then add rising and falling files to groups of this DataFolder, otherwise create a new one
- Returns:
(
Sonter.Folder.DataFolder
) – with two groups, rising and falling