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 committed Sep 20, 2024
1 parent 44fd4c5 commit d3f5401
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion py_neuromodulation/gui/backend/app_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import pandas as pd

from py_neuromodulation import PYNM_DIR, NMSettings
from py_neuromodulation.nm_types import FileInfo
from py_neuromodulation.utils.types import FileInfo

from multiprocessing import Process, Queue

Expand Down
18 changes: 8 additions & 10 deletions start_LSL_stream.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from py_neuromodulation import (
nm_mnelsl_generator,
nm_IO,
nm_define_nmchannels,
nm_analysis,
nm_stream,
NMSettings,
from py_neuromodulation.stream import (
LSLStream,
LSLOfflinePlayer,
)

from py_neuromodulation import io

from py_neuromodulation import App
import numpy as np

Expand All @@ -16,7 +14,7 @@
PATH_BIDS,
PATH_OUT,
datatype,
) = nm_IO.get_paths_example_data()
) = io.get_paths_example_data()

(
raw,
Expand All @@ -25,10 +23,10 @@
line_noise,
coord_list,
coord_names,
) = nm_IO.read_BIDS_data(PATH_RUN=PATH_RUN)
) = io.read_BIDS_data(PATH_RUN=PATH_RUN)

if __name__ == "__main__":
player = nm_mnelsl_generator.LSLOfflinePlayer(raw=raw, stream_name="example_stream")
player = LSLOfflinePlayer(raw=raw, stream_name="example_stream")

player.start_player(chunk_size=30, n_repeat=5999999)

Expand Down

0 comments on commit d3f5401

Please sign in to comment.