Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

created an abstract #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
# Copyright 2004-present Facebook. All Rights Reserved.

from wsgiref.simple_server import demo_app
import labgraph as lg
from typing import Dict, Tuple

Expand Down Expand Up @@ -101,9 +102,9 @@ def setup(self) -> None:
AttenuatorConfig(
attenuation=ATTENUATION,
)
)

def connections(self) -> lg.Connections:
)
def returnConnect(self):
return (
(self.NOISE_GENERATOR.NOISE_GENERATOR_OUTPUT, self.ROLLING_AVERAGER.ROLLING_AVERAGER_INPUT),
(self.NOISE_GENERATOR.NOISE_GENERATOR_OUTPUT, self.AMPLIFIER.AMPLIFIER_INPUT),
Expand All @@ -115,6 +116,10 @@ def connections(self) -> lg.Connections:
(self.SERIALIZER.SERIALIZER_OUTPUT, self.WS_SERVER_NODE.topic),
)

def connections(self) -> lg.Connections:

return self.returnConnect()

def process_modules(self) -> Tuple[lg.Module, ...]:
return (
self.NOISE_GENERATOR,
Expand All @@ -130,4 +135,7 @@ def process_modules(self) -> Tuple[lg.Module, ...]:
set_graph_topology(graph=graph)

runner = lg.ParallelRunner(graph=graph)
runner.run()
runner.run()



Empty file added python
Empty file.