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

refactor: generic.py restructuring #2649

Merged
merged 16 commits into from
Apr 8, 2024
Merged

refactor: generic.py restructuring #2649

merged 16 commits into from
Apr 8, 2024

Conversation

hpohekar
Copy link
Collaborator

@hpohekar hpohekar commented Apr 3, 2024

closes #2643

  1. Removed generic.py as it's name was not helping to clarify it's usage.
  2. in_notebook moved to check_in_notebook.py
  3. loop related functions moved to event_loop.py.
  4. Singleton metaclasses moved to singlton_meta.py
  5. timing moved to timing_decorator.py

@hpohekar
Copy link
Collaborator Author

hpohekar commented Apr 3, 2024

@seanpearsonuk @mkundu1 @prmukherj

We can rename recently added modules. Please share if you have any suggestions. Thank you.

Copy link
Contributor

@mkundu1 mkundu1 left a comment

Choose a reason for hiding this comment

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

Should we move those singular functions within a module to an __init__.py in the parent module? We won't loose anything in terms of namespaces if we do that.

@hpohekar hpohekar merged commit acc73a9 into main Apr 8, 2024
26 checks passed
@hpohekar hpohekar deleted the fix/generic_restructuring branch April 8, 2024 13:21
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.

utils/generic.py: confusing mix of functionality
5 participants