jerdra / SDC-BIDS-fMRI_old

Scientific-Compute Working Group Workshop on performing analysis of neuroimaging data in python
3 stars 10 forks source link

Ep 01 | Masking #10

Closed josephmje closed 5 years ago

josephmje commented 5 years ago

@jerdra not sure what you meant by reshape command here

jerdra commented 5 years ago

ah I meant there was use of reshape like:

x.reshape( (dim,-1) )

There was no explanation for a. What reshape does, how does it work? It's easy to think about it in terms of changing dimension size but how does the actual data change? How are the rows/columns being shifted around? b. The use of (-1) in reshape should be explained cause its really useful

jerdra commented 5 years ago

ah sorry just took another look. You use -1 to refer to the last element in the array (instead of as an arg to reshape), as long as it's mentioned we should be good. But point (a) still stands.