-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #828 from arnaudbore/rename_convert_scripts
Rename convert scripts
- Loading branch information
Showing
16 changed files
with
124 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
from scilpy.io.deprecator import deprecate_script | ||
from scripts.scil_gradients_convert_fsl_to_mrtrix import main as new_main | ||
|
||
|
||
DEPRECATION_MSG = """ | ||
This script has been renamed scil_gradients_convert_fsl_to_mrtrix.py. | ||
Please change your existing pipelines accordingly. | ||
""" | ||
|
||
|
||
@deprecate_script("scil_convert_gradients_fsl_to_mrtrix.py", | ||
DEPRECATION_MSG, '1.7.0') | ||
def main(): | ||
new_main() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
from scilpy.io.deprecator import deprecate_script | ||
from scripts.scil_gradients_convert_mrtrix_to_fsl import main as new_main | ||
|
||
|
||
DEPRECATION_MSG = """ | ||
This script has been renamed scil_gradients_convert_mrtrix_to_fsl.py. | ||
Please change your existing pipelines accordingly. | ||
""" | ||
|
||
|
||
@deprecate_script("scil_convert_gradients_mrtrix_to_fsl.py", | ||
DEPRECATION_MSG, '1.7.0') | ||
def main(): | ||
new_main() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
from scilpy.io.deprecator import deprecate_script | ||
from scripts.scil_rgb_convert import main as new_main | ||
|
||
|
||
DEPRECATION_MSG = """ | ||
This script has been renamed scil_rgb_convert.py. | ||
Now, all our scripts using metrics or reconstructions start | ||
with scil_reconst_...! | ||
Please change your existing pipelines accordingly. | ||
""" | ||
|
||
|
||
@deprecate_script("scil_convert_rgb.py", DEPRECATION_MSG, '1.7.0') | ||
def main(): | ||
new_main() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
from scilpy.io.deprecator import deprecate_script | ||
from scripts.scil_tractogram_convert import main as new_main | ||
|
||
|
||
DEPRECATION_MSG = """ | ||
This script has been renamed scil_tractogram_convert.py. | ||
Now, all our scripts using tractogram start with scil_tractogram_...! | ||
Please change your existing pipelines accordingly. | ||
""" | ||
|
||
|
||
@deprecate_script("scil_convert_tractogram.py", DEPRECATION_MSG, '1.7.0') | ||
def main(): | ||
new_main() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
def test_help_option(script_runner): | ||
ret = script_runner.run('scil_convert_gradients_fsl_to_mrtrix.py', '--help') | ||
assert ret.success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
def test_help_option(script_runner): | ||
ret = script_runner.run('scil_convert_gradients_mrtrix_to_fsl.py', '--help') | ||
assert ret.success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
def test_help_option(script_runner): | ||
ret = script_runner.run('scil_convert_rgb.py', '--help') | ||
assert ret.success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
def test_help_option(script_runner): | ||
ret = script_runner.run('scil_convert_tractogram.py', '--help') | ||
assert ret.success |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters