Skip to content

Commit

Permalink
Rename convert fdf
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaRenauld committed Dec 14, 2023
1 parent fe67fcb commit b09c0f6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
20 changes: 20 additions & 0 deletions scripts/legacy/scil_convert_fdf.py
Original file line number Diff line number Diff line change
@@ -0,0 1,20 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from scilpy.io.deprecator import deprecate_script
from scripts.scil_dwi_convert_FDF import main as new_main


DEPRECATION_MSG = """
This script has been renamed scil_dwi_convert_FDF.py.
Please change your existing pipelines accordingly.
"""


@deprecate_script("scil_convert_fdf.py", DEPRECATION_MSG, '1.7.0')
def main():
new_main()


if __name__ == "__main__":
main()
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 6,8 @@
If the procpar contains diffusion information, it will be saved as bval and
bvec in the same folder as the output file.
ex: scil_convert_fdf.py semsdw/b0_folder/ semsdw/dwi_folder/ dwi.nii.gz \
--bval dwi.bval --bvec dwi.bvec -f
ex: scil_dwi_convert_FDF.py semsdw/b0_folder/ semsdw/dwi_folder/ \
dwi.nii.gz --bval dwi.bval --bvec dwi.bvec -f
"""

import argparse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 3,5 @@


def test_help_option(script_runner):
ret = script_runner.run('scil_convert_fdf.py', '--help')
ret = script_runner.run('scil_dwi_convert_fdf.py', '--help')
assert ret.success

0 comments on commit b09c0f6

Please sign in to comment.