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

Update init files for optimized import functionality #356

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

rspwarnaarUT
Copy link
Collaborator

Previously this reference:

>>> import resurfemg
>>> resurfemg.preprocessing

Would yield:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'resurfemg' has no attribute 'preprocessing'

By defining subpackages and modules in init.py files, we get a successful import:

>>> import resurfemg
>>> resurfemg.preprocessing
<module 'resurfemg.preprocessing' from 'PATH_TO_LIBRARY\\resurfemg\\preprocessing\\__init__.py'>

@ReSurfEMG ReSurfEMG merged commit 000b1a7 into main Dec 12, 2024
4 checks passed
@rspwarnaarUT rspwarnaarUT deleted the improvement/init_files branch December 12, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants