Commit 030a7e40 authored by Martinez-Carvajal German's avatar Martinez-Carvajal German
Browse files

I forgot the lines to save the file

in the past commit
parent cf659f3c
......@@ -278,12 +278,16 @@ def connect_CR(path_read, file_top, file_bot, path_save, sample_name):
new_label += 1
new_labels = np.unique(connected_image)
print(new_labels, len(new_labels))
#print(new_labels, len(new_labels))
ll_2 = len(new_labels)
assert(ll_2 == ll_1)
assert(np.max(new_labels) + 1 == ll_2)
print('Connection OK !')
print('saving ...')
chdir(path_save)
tifffile.imsave("CR_of_{}.tif".format(sample_name) , connected_image)
print('finished !')
path_read = "/home/german.martinez-carvajal/Bureau/These/Connecting_CR/test"
path_save = "/home/german.martinez-carvajal/Bureau/These/Connecting_CR/test"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment