Skip to content

Commit

Permalink
changing to static method
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeigh committed Mar 7, 2024
1 parent 1f9e98c commit 3e5ba4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def filter_func(images: ImageStack, snr=3, size=61, progress=None):
compute_func = RemoveDeadStripesFilter.compute_function_sino
else:
compute_func = RemoveDeadStripesFilter.compute_function

ps.run_compute_func(compute_func, images.num_projections, images.shared_array, params, progress)
ps.run_compute_func(compute_func, images.num_sinograms, images.shared_array, params, progress)
return images

@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def filter_func(images: 'ImageStack', snr=3, la_size=61, progress=None):
compute_func = RemoveLargeStripesFilter.compute_function_sino
else:
compute_func = RemoveLargeStripesFilter.compute_function

ps.run_compute_func(compute_func, images.num_projections, images.shared_array, params, progress)
ps.run_compute_func(compute_func, images.num_sinograms, images.shared_array, params, progress)
return images

@staticmethod
Expand Down

0 comments on commit 3e5ba4a

Please sign in to comment.