-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#19 * Update construct_dpdb_visu.py Added main() Moved import argparse to toplevel in construct rename generalGraph to general_gr * Update logging * Update main docstring + Renamed ARGS to _args + argparse on toplevel import + sorted imports * Update visualization.py * Create logging.yml * Remove logging.basicConfig * Explicit logger names Same as in logging.yml #19 * Update logging.yml Update formatter * Add utilities.py Factor out common helper methods. Makes files easier to read, imports easier. #7 * Move static methods to utilities The static methods were generic enough to be a utility. Other than that it helps to keep visualization.py more slim to just import these methods. Some Format. * Update read_cfg with read_yml_or_cfg #19 Using utility method to read different cfg formats. * Update test_bag_creation.py Use utility * Update logging Setup Setup with utilities DefaultLoggingCfg * Factored logging config dpdb into utilities #19 * Some type refactoring using int/float correctly * Favtored logging out in visualization.py Other main application that needs logging config. #19 * loglevel default to None loglevel=None means take what the config says. The commandline parameter takes precedence over config. If not None: update 'root' logger and it's handlers to that level. #19 #20 * Added logging.ini for comparison Much more verbose, handlers+qualname needed most likely. Updated logging.yml with WARNING default and all loggers use the root handler https://docs.python.org/3/howto/logging.html#logging-flow #19 * Comments, Changelog Comment basicConfig (provide information until logging is set up). * Update svgjoin.py Fixed wrong conversion to int. Added better typing for f_transform
- Loading branch information
1 parent
010af57
commit 66d18d1
Showing
11 changed files
with
693 additions
and
421 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[loggers] | ||
keys=root,visualization.py,svgjoin.py,reader.py,construct_dpdb_visu.py,utilities.py | ||
|
||
[handlers] | ||
keys=console | ||
|
||
[formatters] | ||
keys=simple,full | ||
|
||
[handler_console] | ||
class=StreamHandler | ||
level=WARNING | ||
formatter=full | ||
args=(sys.stdout,) | ||
|
||
[formatter_simple] | ||
format=%(asctime)s %(levelname)s %(message)s | ||
datefmt=%H:%M:%S | ||
|
||
[formatter_full] | ||
format=%(asctime)s,%(msecs)d %(levelname)s[%(filename)s:%(lineno)d] %(message)s | ||
datefmt=%Y-%m-%d %H:%M:%S | ||
|
||
[logger_root] | ||
level=WARNING | ||
handlers=console | ||
|
||
[logger_visualization.py] | ||
level=NOTSET | ||
qualname=visualization.py | ||
handlers=console | ||
|
||
[logger_svgjoin.py] | ||
level=NOTSET | ||
qualname=svgjoin.py | ||
handlers=console | ||
|
||
[logger_reader.py] | ||
level=NOTSET | ||
qualname=reader.py | ||
handlers=console | ||
|
||
[logger_construct_dpdb_visu.py] | ||
level=NOTSET | ||
qualname=construct_dpdb_visu.py | ||
handlers=console | ||
|
||
[logger_utilities.py] | ||
level=NOTSET | ||
qualname=utilities.py | ||
handlers=console | ||
|
Oops, something went wrong.
66d18d1
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.
#21