Skip to content

Commit

Permalink
Use generators and simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
msorelli committed Nov 18, 2024
1 parent d6d33be commit 79318da
Show file tree
Hide file tree
Showing 12 changed files with 883 additions and 948 deletions.
6 changes: 1 addition & 5 deletions foa3d/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from foa3d.input import get_cli_parser, load_microscopy_image
from foa3d.pipeline import parallel_odf_over_scales, parallel_frangi_over_slices
from foa3d.pipeline import parallel_frangi_over_slices, parallel_odf_over_scales
from foa3d.printing import print_pipeline_heading
from foa3d.utils import delete_tmp_folder


def foa3d(cli_args):
Expand All @@ -15,9 +14,6 @@ def foa3d(cli_args):
# generate 3D fiber ODF maps over the spatial scales of interest using concurrent workers
parallel_odf_over_scales(cli_args, save_dirs, out_img['vec'], out_img['iso'], out_img['px_sz'], in_img['name'])

# delete temporary folder
delete_tmp_folder(save_dirs['tmp'], (in_img, out_img))


def main():
# start Foa3D by terminal
Expand Down
Loading

0 comments on commit 79318da

Please sign in to comment.