Skip to content
Snippets Groups Projects
Commit 17b14580 authored by Christoph Heidecker's avatar Christoph Heidecker
Browse files

* fixed pep8 issues

parent cd7efd59
Branches
No related tags found
No related merge requests found
......@@ -107,11 +107,11 @@ def check_hashes(check_file_list):
block_size = 65536
hash_library = hashlib.md5()
for file in check_file_list:
with open(file, 'rb') as afile:
buf = afile.read(block_size)
with open(file, 'rb') as a_file:
buf = a_file.read(block_size)
while len(buf) > 0:
hash_library.update(buf)
buf = afile.read(block_size)
buf = a_file.read(block_size)
new_test_dict[file] = hash_library.hexdigest()
try:
test_dict = json.load(open(".hashes.tmp"))
......@@ -120,6 +120,7 @@ def check_hashes(check_file_list):
result = False
break
except Exception as e:
print(c_red + "No valid data of last execution found \nPython-ERROR: " + str(e) + c_end)
result = False
json.dump(new_test_dict, open(".hashes.tmp", 'w'))
return result
\ No newline at end of file
return result
......@@ -12,6 +12,7 @@ def set_general_style(n_colors=11):
sns.set_style(style='white')
sns.set_style("whitegrid")
def plot_1d_hist(data_frame_list, weights_list, label_list, title='', x_label='', y_label='', x_log=False, y_log=False,
show_plot=True, save_plot=True, legend_loc='center left', style='step', export_as='.pdf', dpi=500):
print('------------------------------------------------------------------')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment