Skip to content

Commit 545b1b4

Browse files
committed
Clock, Oscillator → from ezmsg.simbiophys.eeg import EEGSynth
1 parent 9ef9963 commit 545b1b4

5 files changed

Lines changed: 6 additions & 53 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ lint = [
2828
]
2929
test = [
3030
"pytest>=8.3.3",
31+
"ezmsg-simbiophys>=1.4.1",
3132
]
3233
docs = [
3334
"sphinx>=7.0",

scripts_nbs/profiler/ecog_preproc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
from ezmsg.sigproc.downsample import Downsample
88
from ezmsg.sigproc.scaler import AdaptiveStandardScaler
99
from ezmsg.sigproc.slicer import Slicer
10-
from ezmsg.sigproc.synth import EEGSynth
1110
from ezmsg.sigproc.wavelets import CWT, MinPhaseMode
1211
from ezmsg.sigproc.window import Anchor
12+
from ezmsg.simbiophys.eeg import EEGSynth
1313
from ezmsg.util.terminate import TerminateOnTotal
1414

1515

scripts_nbs/profiler/mp_demo.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

tests/test_shmem_mirror.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import ezmsg.core as ez
1010
import numpy as np
1111
import pytest
12-
from ezmsg.sigproc.synth import Clock, Oscillator
12+
from ezmsg.simbiophys.eeg import EEGSynth
1313
from ezmsg.util.messagecodec import message_log
1414
from ezmsg.util.messagelogger import MessageLogger
1515
from ezmsg.util.messages.axisarray import AxisArray
@@ -85,15 +85,13 @@ def app(file_path) -> None:
8585
n_messages = int(TOTAL_DURATION * chunk_rate)
8686

8787
comps = {
88-
"CLOCK": Clock(dispatch_rate=chunk_rate),
89-
"SYNTH": Oscillator(n_time=chunk_size, fs=SR, n_ch=CHANNEL_COUNT, dispatch_rate="ext_clock"),
88+
"SYNTH": EEGSynth(fs=SR, n_time=chunk_size, n_ch=CHANNEL_COUNT),
9089
"CRAZY": CrazyUnit(change_after=n_messages // 2, change_type=change_type),
9190
"SINK": ShMemCircBuff(SHMEM_NAME, 2.0, conn=None, axis="time"),
9291
"LOGGER": MessageLogger(output=file_path),
9392
"TERM": TerminateOnTotal(total=n_messages),
9493
}
9594
conns = (
96-
(comps["CLOCK"].OUTPUT_SIGNAL, comps["SYNTH"].INPUT_SIGNAL),
9795
(comps["SYNTH"].OUTPUT_SIGNAL, comps["CRAZY"].INPUT_SIGNAL),
9896
(comps["CRAZY"].OUTPUT_SIGNAL, comps["SINK"].INPUT_SIGNAL),
9997
(comps["CRAZY"].OUTPUT_SIGNAL, comps["LOGGER"].INPUT_MESSAGE),

tests/test_shmem_sink.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import ezmsg.core as ez
77
import numpy as np
88
import pytest
9-
from ezmsg.sigproc.synth import Clock, Oscillator
9+
from ezmsg.simbiophys.eeg import EEGSynth
1010
from ezmsg.util.messagecodec import message_log
1111
from ezmsg.util.messagelogger import MessageLogger
1212
from ezmsg.util.messages.axisarray import AxisArray
@@ -82,15 +82,13 @@ def test_shmem_change(change_type: str):
8282
file_path.unlink(missing_ok=True)
8383

8484
comps = {
85-
"CLOCK": Clock(dispatch_rate=100.0),
86-
"SYNTH": Oscillator(n_time=10, fs=1000, n_ch=n_ch, dispatch_rate="ext_clock"),
85+
"SYNTH": EEGSynth(fs=1000, n_time=10, n_ch=n_ch),
8786
"CRAZY": CrazyUnit(change_after=n_messages // 2, change_type=change_type),
8887
"SINK": ShMemCircBuff(SHMEM_NAME, 2.0, conn=None, axis="time"),
8988
"LOGGER": MessageLogger(output=file_path),
9089
"TERM": TerminateOnTotal(total=n_messages),
9190
}
9291
conns = (
93-
(comps["CLOCK"].OUTPUT_SIGNAL, comps["SYNTH"].INPUT_SIGNAL),
9492
(comps["SYNTH"].OUTPUT_SIGNAL, comps["CRAZY"].INPUT_SIGNAL),
9593
(comps["CRAZY"].OUTPUT_SIGNAL, comps["LOGGER"].INPUT_MESSAGE),
9694
(comps["LOGGER"].OUTPUT_MESSAGE, comps["TERM"].INPUT_MESSAGE),

0 commit comments

Comments
 (0)