Skip to content

Commit

Permalink
Update mne/preprocessing/optical_density.py
Browse files Browse the repository at this point in the history
Co-Authored-By: Eric Larson <[email protected]>
  • Loading branch information
rob-luke and larsoner authored Oct 2, 2019
1 parent 65fce27 commit fd8d1cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mne/preprocessing/optical_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def optical_density(raw):
for ii in picks:
data = -1.0 * log(divide(raw.get_data(ii).T,
ones((len(raw), 1)) * data_means[ii]))
raw._data[ii, :] = data.T
raw._data[ii] /= means[ii]
np.log(raw._data[ii], out=raw._data[ii])
raw.info['chs'][ii]['coil_type'] = FIFF.FIFFV_COIL_FNIRS_OD

return raw

0 comments on commit fd8d1cc

Please sign in to comment.