allensdk.brain_observatory.behavior.data_files.eye_tracking_file module

class allensdk.brain_observatory.behavior.data_files.eye_tracking_file.EyeTrackingFile(filepath: str | Path)[source]

Bases: DataFile

A DataFile which contains methods for accessing and loading eye tracking data.

classmethod from_json(dict_repr: dict) EyeTrackingFile[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(db: PostgresQueryMixin, behavior_session_id: int | str) EyeTrackingFile[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) DataFrame[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.