-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
massive overhaul of pyodide in the app
Co-authored-by: Dano Morrison <[email protected]>
- Loading branch information
1 parent
bc7b6ef
commit b917a67
Showing
5 changed files
with
103 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const fs = require("fs"); | ||
|
||
export const readFiles = (filePathsArray) => { | ||
return filePathsArray.map(path => { | ||
console.log('about to read file') | ||
const file = fs.readFileSync(path, 'utf8') | ||
console.log('read file') | ||
return file | ||
}) | ||
} | ||
|
||
|
||
|
||
// ------------------------------------------- | ||
// Helper methods | ||
|
||
const formatFilePath = (filePath: string) => | ||
`"${filePath.replace(/\\/g, "/")}"`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1 @@ | ||
from time import time, strftime, gmtime | ||
import os | ||
from collections import OrderedDict | ||
from glob import glob | ||
|
||
import numpy as np | ||
import pandas as pd # maybe we can remove this dependency | ||
import seaborn as sns | ||
from matplotlib import pyplot as plt | ||
|
||
from mne import (Epochs, RawArray, concatenate_raws, concatenate_epochs, | ||
create_info, find_events, read_epochs, set_eeg_reference) | ||
from mne.channels import read_montage | ||
|
||
|
||
plt.style.use(fivethirtyeight) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters