Skip to content

Commit

Permalink
add debugging file and fix another import
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmerk authored and toni-neurosc committed Sep 22, 2024
1 parent 0a0d52e commit e523c4a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions start_LSL_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
) = io.read_BIDS_data(PATH_RUN=PATH_RUN)

if __name__ == "__main__":

PATH_VHDR = "/Users/Timon/Documents/py-neurmodulation_merge/py_neuromodulation/py_neuromodulation/data/sub-testsub/ses-EphysMedOff/ieeg/sub-testsub_ses-EphysMedOff_task-gripforce_run-0_ieeg.vhdr"
# data, sfreq, ch_names, ch_types, bads = io.read_mne_data(PATH_VHDR)
(raw_arr,
# data, sfreq, ch_names, ch_types, bads = io.read_mne_data(PATH_VHDR)
(
raw_arr,
data,
sfreq,
line_noise,
Expand All @@ -52,7 +52,6 @@
)

settings = nm.NMSettings.get_fast_compute()


stream = nm.Stream(
settings=settings,
Expand All @@ -62,10 +61,8 @@
line_noise=50,
)


features = asyncio.run(stream.run(data, save_csv=True))


player = LSLOfflinePlayer(raw=raw, stream_name="example_stream")

player.start_player(chunk_size=30, n_repeat=5999999)
Expand All @@ -75,5 +72,3 @@
# check functionality of stream: do features end up in the queue?

# are queue values put through websocket


0 comments on commit e523c4a

Please sign in to comment.