ota.data package¶
Submodules¶
ota.data.data module¶
-
class
ota.data.data.Data(name, path=None)[source]¶ Bases:
object-
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.
-