Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

started alias of main package for imports #266

Merged
merged 1 commit into from
Apr 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions eegexpy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

from eegnb.experiments import VisualN170,VisualP300,VisualSSVEP,AuditoryOddball

from eegnb.analysis.utils import *



Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should specify a __all__ variable here with the intended "exports" of the package (what will be imported with from eegexpy import *).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate?

I had hoped the import * would give me all of the eegnb imports and that would be the only line needed

In practice that didn't work. Unclear why. From reading it seemed it could be that the modules inside eegnb are doing relative imports. So it looks like I will need to explicitly do a load of imports in this init to get it to mirror eegnb