|
9 | 9 | import ezmsg.core as ez |
10 | 10 | import numpy as np |
11 | 11 | import pytest |
12 | | -from ezmsg.sigproc.synth import Clock, Oscillator |
| 12 | +from ezmsg.simbiophys.eeg import EEGSynth |
13 | 13 | from ezmsg.util.messagecodec import message_log |
14 | 14 | from ezmsg.util.messagelogger import MessageLogger |
15 | 15 | from ezmsg.util.messages.axisarray import AxisArray |
@@ -85,15 +85,13 @@ def app(file_path) -> None: |
85 | 85 | n_messages = int(TOTAL_DURATION * chunk_rate) |
86 | 86 |
|
87 | 87 | 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), |
90 | 89 | "CRAZY": CrazyUnit(change_after=n_messages // 2, change_type=change_type), |
91 | 90 | "SINK": ShMemCircBuff(SHMEM_NAME, 2.0, conn=None, axis="time"), |
92 | 91 | "LOGGER": MessageLogger(output=file_path), |
93 | 92 | "TERM": TerminateOnTotal(total=n_messages), |
94 | 93 | } |
95 | 94 | conns = ( |
96 | | - (comps["CLOCK"].OUTPUT_SIGNAL, comps["SYNTH"].INPUT_SIGNAL), |
97 | 95 | (comps["SYNTH"].OUTPUT_SIGNAL, comps["CRAZY"].INPUT_SIGNAL), |
98 | 96 | (comps["CRAZY"].OUTPUT_SIGNAL, comps["SINK"].INPUT_SIGNAL), |
99 | 97 | (comps["CRAZY"].OUTPUT_SIGNAL, comps["LOGGER"].INPUT_MESSAGE), |
|
0 commit comments