-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to Tool and Component functionality (#1052)
* added initial function to turn Component or Tool into yaml * show difference to default value in written config * replaced custom log code with LoggingConfigurable * added features to Component: - `get_current_config()` returns the *full* configuration of the instance, unlike the `.config` attribute which only returns the non-default settings. This includes even changes made during the running of the program, not from the input configuration files. - added a nicer HTML repr for notebooks * Added features to Tool: - properly set the default log_format trait - allow Component *instances* to be registered (so we can get their config later) - added `get_current_config()`, similar to the one in Component, but returning the actual config for the Tool instance + all registered Component instances - add the full instance config to the provenance system - added an HTML repr for notebooks - fixed a type in test_component_current_config() - add tool example - always log the config (as info not debug) - ensure allowed_tels is a set internally - make sure set() is JSON serializable - show difference to default value in written config - added tests for new tool functionality - Update notebooks * remove CameraR1Calibrator * code style cleanups * added docstrings * make main() func so * fix to work with new CameraCalibrator * fixed muon tool * removed superflous import * removed utils/tools.py and moved to core/traits.py * fix some problems with the move of utils/tools.py * fix imports borked during refactor * small changes to fix style complaints * just some reformatting * fixed some strings that were not merged after reformatting * removed duplicate log_format trait * fixed typo
- Loading branch information
Showing
28 changed files
with
943 additions
and
433 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
""" | ||
tests of core functionality of ctapipe | ||
""" |
Oops, something went wrong.