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 sorted

  • col (index) – is something that Stoner.Core.DataFile.find_col() can use

  • folder (Stoner.Folders.DataFolder or None) – if this is an instance of Stoner.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