Skip to content

Commit

Permalink
Fix optical density code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-luke committed Sep 30, 2019
1 parent 1e00cf5 commit 12f04ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mne/preprocessing/optical_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ..utils import _validate_type
from ..io.pick import _picks_to_idx

from numpy import mean, divide, log, ones, concatenate
from numpy import mean, divide, log, ones


def optical_density(raw):
Expand All @@ -29,7 +29,7 @@ def optical_density(raw):
data_means = mean(raw.get_data(), 1)
for ii in picks:
data = -1.0 * log(divide(raw.get_data(ii).T,
ones((len(raw), 1)) * data_means[ii]))
ones((len(raw), 1)) * data_means[ii]))
raw._data[ii, :] = data.T
raw.info['chs'][ii]['coil_type'] = FIFF.FIFFV_COIL_FNIRS_OD

Expand Down

0 comments on commit 12f04ea

Please sign in to comment.