Hoffman2:Scripts:switch fsl: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Hoffman2:Scripts | Back to Hoffman2 Scripts]]
<blockquote style="border: solid red 2px; font-weight: bold; padding: 2px; background-color: lightgray;">This page is deprecated. Please see [[Hoffman2:Modules]] for more information about CCN-supported software on Hoffman2.</blockquote>
<blockquote style="border: solid red 2px; font-weight: bold; padding: 2px; background-color: lightgray;">This page is deprecated. Please see [[Hoffman2:Modules]] for more information about CCN-supported software on Hoffman2.</blockquote>
[[Hoffman2:Scripts | Back to Hoffman2 Scripts]]


== Overview ==
== Overview ==
Use this tool to keep consistent on the FSL version you are using on Hoffman2.
Use this tool to keep consistent on the FSL version you are using on Hoffman2.


== Usage ==
== Usage ==

Revision as of 17:24, 22 May 2017

Back to Hoffman2 Scripts

This page is deprecated. Please see Hoffman2:Modules for more information about CCN-supported software on Hoffman2.

Overview

Use this tool to keep consistent on the FSL version you are using on Hoffman2.

Usage

Initialization/Switching

If you have never used the tool before, your first usage needs to be to set your FSL version. e.g.

$ switch_fsl -s 5.0.0

would set your FSL version to 5.0.0

Checking which version is active

You can always check which version you are using with

$ switch_fsl -c

Dropping out of the program

And if you no longer wish to use the switch_fsl system and instead always use the "current" version

$ switch_fsl -d

will remove you from the program.

NOTE: Whenever you switch FSL versions or remove your self from the switch_fsl program, you need to log out of Hoffman2 and back in for the changes to take full effect.


Help

Call the program without any options, or with "-h" or "--help" to see the full usage and help information

$ switch_fsl
Description: switch_fsl easily and cleanly switches between various fsl versions.

Usage: switch_fsl [OPTIONS]
Options:
    -h, --help                       Display this help/usage message
    -v, --verbose                    Verbose output
    -s, --switch VERSION             Designate the appropriate fsl version. 
                                        If switching between versions, you must log out
                                        then back it to reset up your environment.
                                        Available versions are: 4.0.4, 4.1.0, 4.1.1, 4.1.3, 4.1.4, 4.1.4-dev, 4.1.7, 4.1.8, 4.1.9, 5.0.0
    -c, --check                      Checks for current fsl version being used
    -d, --delete                     Stops using this system so you instead use the current version
                                        of the tool at all times. You MUST log out and then back
                                        in to properly reset your environment.

Examples: 
        switch_fsl -s 4.1.0
        switch_fsl --switch 4.0.4
        switch_fsl -h
        switch_fsl --check