aeye-lab / pymovements

A python package for processing eye movement data
https://pymovements.readthedocs.io
MIT License
57 stars 11 forks source link

fix circular import in gaze_dataframe.py #559

Open dkrako opened 9 months ago

dkrako commented 9 months ago
          This PR includes an EventsDataFrame in a GazeDataFrame, which leads to circular dependencies when importing both.

Doing something like

from pymovements.gaze.gaze_dataframe import GazeDataFrame

results in a hard python circular import error.

I have found a workaround by importing the pymovements top-level package, but then pylint is not happy with me again.

Right now I just can't find a way to untie this knot. As this is just a linting issue, I would like to create a follow-up issue on how to solve this problem and leave it like this for this PR.

_Originally posted by @dkrako in https://github.com/aeye-lab/pymovements/pull/553#discussion_r1325803013_