Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REF TEST] Refactor data handling #1045

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions clinica/iotools/converters/adni_to_bids/adni_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,7 @@ def _create_file(
),
lvl="error",
)
raise ValueError(error_msg)
else:
shutil.copy(image_path, output_image)

Expand Down
21 changes: 21 additions & 0 deletions clinica/iotools/utils/data_handling/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from ._centering import (
center_all_nifti,
center_nifti_origin,
check_relative_volume_location_in_world_coordinate_system,
check_volume_location_in_world_coordinate_system,
)
from ._files import create_subs_sess_list, write_list_of_files
from ._merging import create_merge_file
from ._missing import compute_missing_mods, compute_missing_processing

__all__ = [
"create_merge_file",
"center_nifti_origin",
"center_all_nifti",
"compute_missing_mods",
"compute_missing_processing",
"create_subs_sess_list",
"write_list_of_files",
"check_volume_location_in_world_coordinate_system",
"check_relative_volume_location_in_world_coordinate_system",
]
Loading
Loading