allensdk.brain_observatory.behavior.data_files.eye_tracking_metadata_file module¶
- class allensdk.brain_observatory.behavior.data_files.eye_tracking_metadata_file.EyeTrackingMetadataFile(filepath: str | Path)[source]¶
Bases:
DataFileDatafile for tracking the metadata file associated with the eye tracking camera
- classmethod from_json(dict_repr: dict) EyeTrackingMetadataFile[source]¶
Populates a DataFile from a JSON compatible dict (likely parsed by argschema)
- Returns:
- DataFile:
An instantiated DataFile which has data and filepath properties
- classmethod from_lims()[source]¶
Populate a DataFile from an internal database (likely LIMS)
- Returns:
- DataFile:
An instantiated DataFile which has data and filepath properties
- static load_data(filepath: str | Path) dict[source]¶
Given a filepath (that is meant to by read by the DataFile type), load the contents of the file into a Python type. (dict, DataFrame, list, etc…)
- Parameters:
- filepathUnion[str, Path]
The filepath that the DataFile class should load.
- Returns:
- Any
A Python data type that has been parsed/loaded from the provided filepath.