Skip to content

Commit

Permalink
Fix code style in live-blda
Browse files Browse the repository at this point in the history
  • Loading branch information
dashersw committed Oct 31, 2017
1 parent ddc4b4d commit 2da52e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/offline/live-blda.js
Expand Up @@ -49,7 +49,7 @@ function work(channels) {
const electrodesData = prepareElectrodesData(testRecording.data.electrodes, channels);
const matrixKeys = Object.keys(testRecording.data.matrix);

const reset = matrixKeys.filter((k, i) => matrixKeys[i + 1] > +k + 500).map(k => matrixKeys.indexOf(k))
const reset = matrixKeys.filter((k, i) => matrixKeys[i + 1] > +k + 500).map(k => matrixKeys.indexOf(k));

const epochs = matrixKeys.map(Number)
.map(key => getEpochData(electrodesData, key));
Expand Down Expand Up @@ -96,8 +96,8 @@ function work(channels) {
function getPredictedSymbol(alphabet, predictions, coeff = 1) {
let matrix = {};

Object.keys(predictions).forEach(set => {
set.split('').forEach(char => matrix[char] = predictions[set] + (matrix[char] || 0))
Object.keys(predictions).forEach((set) => {
set.split('').forEach(char => matrix[char] = predictions[set] + (matrix[char] || 0));
});

matrix = _.map(matrix, (v, k) => [k, 2 ** v]);
Expand Down

0 comments on commit 2da52e7

Please sign in to comment.