Commit bcf6f82b authored by Wallenfang, Nils's avatar Wallenfang, Nils

fix drive letter index

parent 9e6e3de6
......@@ -44,7 +44,7 @@ def clicked_browse(frame):
drive = path.split('\\')[0]
drive_paran = drive.split('(')
if len(drive_paran) > 1:
letter = drive
letter = drive_paran[1][:2]
"end", f'Unexpected drive name {drive}.\n')
......@@ -111,6 +111,7 @@ def process_preview_gen(frame, tiff_path):
ts =
time_stamp = datetime.utcfromtimestamp(ts).strftime('%Y%m%d_%H:%M')
plt.imsave(f'{tiff_path}/preview_{time_stamp}.tiff', preview, cmap='gray')
# show preview by opening it again (easiest way to assure correct color map is used)
#TODO check if works cross-platform, problem: imagemagick title doesn't contain the passed title
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