Skip to content

Commit

Permalink
adapt to new split optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
4rnaudB committed Jan 10, 2024
1 parent 001fb6d commit 74c6fa6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dist/
.idea
dcm2bids.json
output_*
./vscode

# Project's data
testing_data
6 changes: 6 additions & 0 deletions fsleyes_plugin_shimming_toolbox/components/run_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@ def get_run_args(self, st_function):
command += ['--' + name]
for arg in args:
command += [arg]

if st_function == 'st_b0shim realtime-dynamic' and \
(name == 'coil' or name == 'scanner-coil-order'):
command += ['--' + name + '-riro']
for arg in args:
command += [arg]

msg += ' '.join(command) + '\n'

Expand Down
8 changes: 4 additions & 4 deletions fsleyes_plugin_shimming_toolbox/tabs/b0shim_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ def create_sizer_dynamic_shim(self, metadata=None):
},
{
"label": "1",
"option_value": "1"
"option_value": "0,1"
},
{
"label": "2",
"option_value": "2"
"option_value": "0,1,2"
}
]

Expand Down Expand Up @@ -591,11 +591,11 @@ def create_sizer_realtime_shim(self, metadata=None):
},
{
"label": "1",
"option_value": "1"
"option_value": "0,1"
},
{
"label": "2",
"option_value": "2"
"option_value": "0,1,2"
}
]

Expand Down
2 changes: 1 addition & 1 deletion installer/install_shimming_toolbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rm -rf "${ST_DIR}/shimming-toolbox"

print info "Downloading Shimming-Toolbox"

ST_VERSION="c9975f7d6bc8bcc4c79ad73fef59c9b938b156dc"
ST_VERSION="072aaa8b47ab7ded0e7a2f5256ea37af0f038c9f"

curl -L "https://github.com/shimming-toolbox/shimming-toolbox/archive/${ST_VERSION}.zip" > "shimming-toolbox-${ST_VERSION}.zip"

Expand Down

0 comments on commit 74c6fa6

Please sign in to comment.