berkeley-stat159 / project-iota

BSD 3-Clause "New" or "Revised" License
1 stars 6 forks source link

If we write a function like below getting the specific files we need, is a good for reproducibility? #62

Closed lizeyuyuz closed 8 years ago

lizeyuyuz commented 8 years ago

Or should we simply leave file loading for the execution part?

def get_n_volx(f1):
    img = nib.load('../../data/' + f1 + '.nii.gz')
    data = img.get_data()
    return data.shape[-1]