ota.data package

Submodules

ota.data.data module

class ota.data.data.Data(name, path=None)[source]

Bases: object

load()[source]

Load data saved in .csv file saved at path specified in self.path.

save()[source]

Save data at data object path.

file_name : String
Desired save file name. e.g. “saved_data1”
path : String
Optional parameter specifying a save location.
mode : String
Optional parameter specifiying the desired type of save file. ‘csv’ - Save data as a csv file. ‘pickle’ - save data as a pickled python object.
set(torsion, start_frame=0, pupil_list=None, metadata=None, frame_index_list=None)[source]

Populate data fields with values.

torsion : list
List of ocular torsion values.
start_frame : int
Video frame index corresponding to the start point of torsion analysis.
pupil_list : list
List of pupil objects.
metadata : dict
Any video/torsion metadata the user wishes to store.
frame_index_list : list
List of same length as torsion. Maps torsion values to corresponding video frame indeces. Specified when the video frames analyzed are not just subsequent frames.
ota.data.data.load(file_str)[source]

Load data from file into data object. Overwrites any currently existing data in that object.

file_str : String
String pointing to file name to be loaded. e.g. “D:datasaved_data1.csv”
data : Data object
Data object stored in file being loaded

Module contents