Skip to content

Commit

Permalink
Merge 62f2fe3 into 7347e4c
Browse files Browse the repository at this point in the history
  • Loading branch information
po09i committed Apr 25, 2024
2 parents 7347e4c + 62f2fe3 commit f05ea6f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion installer/install_shimming_toolbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ print info "Creating launchers for Python scripts. List of functions available:"
mkdir -p "$ST_DIR/$BIN_DIR"

for file in "$ST_DIR"/"$PYTHON_DIR"/bin/*st_*; do
cp "$file" "$ST_DIR/$BIN_DIR/" # || die "Problem creating launchers!"
cp "$file" "$ST_DIR/$BIN_DIR/" || die "Problem creating launchers!"
print list "$file"
done

# Dcm2niix is called by dcm2bids through subprocess, we need to create a launcher for it to be found when called from
# outside the environment (when using st_dicom_to_nifti)
cp ""$ST_DIR"/"$PYTHON_DIR"/bin/dcm2niix" "$ST_DIR/$BIN_DIR/" || die "Problem creating launchers!"

# Activate the launchers
export PATH="$ST_DIR/$BIN_DIR:$PATH"

Expand Down
10 changes: 8 additions & 2 deletions shimmingtoolbox/cli/prepare_fieldmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,18 @@ def prepare_fieldmap_cli(phase, fname_mag, unwrapper, fname_output, autoscale, f
gaussian_filter, sigma, verbose):
"""Creates fieldmap (in Hz) from phase images.
This function accommodates multiple echoes (2 or more) and phase difference. This function also
This function accommodates multiple echoes (2 or more) and phase difference. It also
accommodates 4D phase inputs, where the 4th dimension represents the time, in case multiple
field maps are acquired across time for the purpose of real-time shimming experiments.
For non Siemens phase data, see --autoscale-phase option.
PHASE: Input path of phase nifti file(s), in ascending order: echo1, echo2, etc.
PHASE: Input path of phase NIfTI file(s), in ascending order: echo1, echo2, etc. The BIDS metadata JSON file
associated with each phase file is required, it will be fetched automatically using the same name as the NIfTI file.
Example of use (Multiple echoes) : st_prepare_fieldmap phase_echo1.nii.gz phase_echo2.nii.gz phase_echo3.nii.gz
--mag mag.nii.gz
Example of use (Phase difference): st_prepare_fieldmap phasediff.nii.gz --mag mag.nii.gz
"""
# Set logger level
set_all_loggers(verbose)
Expand Down

0 comments on commit f05ea6f

Please sign in to comment.