diff options
author | Achal Dave <achalddave@live.com> | 2016-05-04 11:55:43 -0400 |
---|---|---|
committer | Achal Dave <achalddave@live.com> | 2016-05-04 11:55:43 -0400 |
commit | 938918c3f5d0a1a738d2229a337774cea92be95a (patch) | |
tree | 7ab7966c00929de25b78f28415a3ccaa5f0e2e28 | |
parent | 4f22fceda92a0370f21f64d45d71ef3e354a0312 (diff) | |
download | caffeonacl-938918c3f5d0a1a738d2229a337774cea92be95a.tar.gz caffeonacl-938918c3f5d0a1a738d2229a337774cea92be95a.tar.bz2 caffeonacl-938918c3f5d0a1a738d2229a337774cea92be95a.zip |
Reformat to fit in 79 columns
-rwxr-xr-x | tools/extra/plot_training_log.py.example | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/extra/plot_training_log.py.example b/tools/extra/plot_training_log.py.example index c3b47a81..3ea66e38 100755 --- a/tools/extra/plot_training_log.py.example +++ b/tools/extra/plot_training_log.py.example @@ -10,7 +10,8 @@ import matplotlib.legend as lgd import matplotlib.markers as mks def get_log_parsing_script(): - dirname = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) + dirname = os.path.dirname(os.path.abspath(inspect.getfile( + inspect.currentframe()))) return dirname + '/parse_log.sh' def get_log_file_suffix(): @@ -61,7 +62,8 @@ def get_data_file_type(chart_type): return data_file_type def get_data_file(chart_type, path_to_log): - return os.path.basename(path_to_log) + '.' + get_data_file_type(chart_type).lower() + return (os.path.basename(path_to_log) + '.' + + get_data_file_type(chart_type).lower()) def get_field_descriptions(chart_type): description = get_chart_type_description(chart_type).split( |