Skip to content

Commit

Permalink
Sort another list
Browse files Browse the repository at this point in the history
  • Loading branch information
po09i committed Nov 20, 2020
1 parent 5222678 commit b866677
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shimmingtoolbox/load_nifti.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def load_nifti(path_data, modality='phase'):

# Get a list of nii files
nifti_list = [os.path.join(nifti_path, f) for f in os.listdir(nifti_path) if f.endswith((".nii", ".nii.gz"))]
nifti_list = sorted(nifti_list)

# Read all images and headers available and store them
nifti_init = [read_nii(nifti_list[i]) for i in range(len(nifti_list))]
Expand Down

0 comments on commit b866677

Please sign in to comment.