pymovements icon indicating copy to clipboard operation
pymovements copied to clipboard

fix circular import in gaze_dataframe.py

Open dkrako opened this issue 9 months ago • 0 comments

          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

dkrako avatar Sep 15 '23 08:09 dkrako