Skip to content

Commit

Permalink
better error handling for logfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeigh committed Jul 18, 2024
1 parent 13b78f5 commit 67f00a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2222: Monitor normalisation: RuntimeError: No logfile available for this stack.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ def filter_func(images: ImageStack, progress=None) -> ImageStack:
"""
:return: The ImageStack object which has been normalised.
"""
if '180deg' in images.name.lower():
if progress:
progress("Skipping normalization for the 180-degree stack, no logfile.")
return images

if images.num_projections == 1:
# we can't really compute the preview as the image stack copy
# passed in doesn't have the logfile in it
Expand Down

0 comments on commit 67f00a4

Please sign in to comment.