-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement a new capsula.run decorator #148
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Owner
shunichironomura
commented
Jan 28, 2024
- Rename capsule.py to _capsule.py and update imports
- Add default method to GitRepositoryContext class
- Add Reporter to all in capsula/reporter/init.py
- Update json reporter to handle exceptions and tracebacks
- Refactor normalize_copy_dst_path to its own method
- Update import path for Capsule in encapsulator.py
- Add capsule decorator for encapsulation logic
- Add decorator example for pi calculation
- Fix for Python 3.8 compatibility
- Add context_manager example in capsula module
- Refine type annotations in capsule decorator
- Add record function to capsula module
- Update calculate_pi method and import Encapsulator
- Add thread-local context stack to Encapsulator class
- Implement record method in _record.py
- Refactor Encapsulator instantiation in context_manager
- Add mkdir option to JsonDumpReporter constructor
- Refactor context_manager.py for cleaner code
- Rename _get_encapsulator_context_stack to _get_context_stack
- Update context manager in capsula.run usage
- Update context manager in capsula run method
- Rename _record.py to _root.py in capsula module
- Update import statement in capsula/init.py
- Refactor decorators and add TimeWatcher in decorator.py
- Rename submodule context to _context
- Rename submodule reporter to _reporter
- Add new context classes and reporter to init.py
- Refactor: Move watcher and reporter modules to private scope
- Add Watcher, TimeWatcher, UncaughtExceptionWatcher to init.py
- Refactor code to use fully qualified names
- Refactor Run to Encapsulator in context_manager
- Rename context_manager.py to enc_context_manager.py
- Add watcher, reporter and context decorators
- Add new decorators to capsula init.py
- Refactor GitRepositoryContext to use CapsuleParams
- Rename classes to end with 'Base' for clarity
- Add run.py with Run class and encapsulation methods
- Refactor decorators to support Run objects
- Add 'run' to decorators in capsula init file
- Update decorator and calculate_pi function call
- Add directory creation and phase updates in Run class
- Add FileContext decorator to calculate_pi function
- Update context_manager_stack.get to non-blocking
- Refactor encapsulator context stack naming and get
- Add thread-local run stack to Run class
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.