-
Notifications
You must be signed in to change notification settings - Fork 18
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
refactor: naming of modules #142
base: main
Are you sure you want to change the base?
refactor: naming of modules #142
Conversation
I guess we have the same problem with |
What about adding something like |
As ugly as it is, I agree that we need to break the convention in such cases. I would prefer to simply append the package name, here |
|
I am starting to think that we should name all modules with a leading underscore. The user should import the modules through the |
At first glance, this doesn't sound like a bad idea to me. Are there any unwanted side effects we need to take into account? Nevertheless, this wouldn't work for the utils modules. |
Why would it not work for the utils modules? |
Because they are not imported through the |
The idea is to import the modules as |
You're completely right, I didn't think of that. Sorry for the confusion. Just one last concern: Will the documentation display the Module names without the underscore? From a usability perspective, the documentation should be sufficient to tell the user how to import each module without having to look at the |
As decided upon in a personal meeting:
|
dc03ab3
to
552b9d1
Compare
Cluster pipeline is fixed. |
@@ -17,7 +17,7 @@ | |||
import numpy as np |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we rename this file to test_numpy_array.py
?
Description and Context
Currently, the cluster pipeline is failing because with
import pickle
inqueens.utils.remote_operations.py
thequeens.utils.pickle.py
is imported instead of the standard library. This bug was introduced with #136 (my bad 👼 ).This PR refactors the
pickle.py
utils into theio.py
utils to solve this issue.Related Issues and Pull Requests
How Has This Been Tested?
Cluster pipeline
Checklist
Additional Information
Interested Parties
Possible reviewers:
Other interested parties: