Skip to content

Commit

Permalink
float
Browse files Browse the repository at this point in the history
  • Loading branch information
baxpr committed Apr 12, 2024
1 parent 55cb64b commit c70c32a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/create_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
tr = nii.header['pixdim'][4]

# fmriprep minimum needed fields
json_data['RepetitionTime'] = f'{tr}'
json_data['RepetitionTime'] = float(tr)

## Slice timing
# Assumes slices are evenly spaced in the TR (i.e. not a sparse
Expand Down
4 changes: 4 additions & 0 deletions src/fmriprep-prep-nojson.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ if [ "${slicetiming}" = "ABIDE" ]; then
export slicetiming=$(slicetiming_ABIDE.py --subject_label "${sub}")
fi

# If subject, session have _, drop it because it's not compatible with BIDS
# file naming
sub=${sub//_/}
ses=${ses//_/}

# Rename and relocate files according to bids scheme

Expand Down

0 comments on commit c70c32a

Please sign in to comment.