Skip to content

Commit

Permalink
Fetched main to spiros-dev | Fixed pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Dec 9, 2024
1 parent 4fcc902 commit 4a62e70
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 0 additions & 2 deletions NiChart_DLMUSE/SegmentImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import os
import shutil
from typing import Any
import DLMUSE
import DLICV


def run_dlicv(
Expand Down
2 changes: 1 addition & 1 deletion NiChart_DLMUSE/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .dlmuse_pipeline import run_pipeline, run_dlicv, run_dlmuse
from .dlmuse_pipeline import run_dlicv, run_dlmuse, run_pipeline
7 changes: 4 additions & 3 deletions NiChart_DLMUSE/dlmuse_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import os
from typing import Any

import pkg_resources # type: ignore

Expand Down Expand Up @@ -39,10 +40,10 @@ def run_pipeline(
in_data: str,
out_dir: str,
device: str,
dlmuse_extra_args: str = '',
dlicv_extra_args: str = '',
dlmuse_extra_args: str = "",
dlicv_extra_args: str = "",
sub_fldr: int = 1,
progress_bar = None,
progress_bar: Any = None,
) -> None:
"""
NiChart pipeline
Expand Down
4 changes: 3 additions & 1 deletion NiChart_DLMUSE/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def remove_common_suffix(list_files: list) -> list:

bnames = list_files
if len(list_files) == 1:
if list_files[0].endswith('_T1'): # If there is a single image with suffix _T1, remove it
if list_files[0].endswith(
"_T1"
): # If there is a single image with suffix _T1, remove it
bnames = [x[0:-3] for x in bnames]
return bnames

Expand Down

0 comments on commit 4a62e70

Please sign in to comment.