Skip to content

Commit

Permalink
WIP generalization
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceJoubert committed Sep 27, 2024
1 parent e89328a commit 246f1b5
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,18 @@ def _build_input_node(self):
)
from clinica.utils.exceptions import ClinicaBIDSError, ClinicaException
from clinica.utils.input_files import T1W_NII
from clinica.utils.inputs import clinica_file_reader
from clinica.utils.inputs import clinica_file_filter
from clinica.utils.stream import cprint
from clinica.utils.ux import print_images_to_process

# Inputs from anat/ folder
# ========================
# T1w file:
try:
t1w_files, _ = clinica_file_reader(
self.subjects, self.sessions, self.bids_directory, T1W_NII
)
except ClinicaException as e:
err = f"Clinica faced error(s) while trying to read files in your BIDS directory.\n{str(e)}"
raise ClinicaBIDSError(err)
t1w_files, subjects, sessions = clinica_file_filter(
self.subjects, self.sessions, self.bids_directory, T1W_NII
)
self.subjects = subjects
self.sessions = sessions

check_volume_location_in_world_coordinate_system(
t1w_files,
Expand Down

0 comments on commit 246f1b5

Please sign in to comment.