def fission_test_job(): _job = ReduceJob(inputs=[ReducePipe(9001)], outputs=[PicklePipe(9002)]) yield _job # This will also remove the buffered job, pipes, groups and nodes which resulted from loading the config. # They are still accessible from the config or via the cfg_job fixture. reset()
def fission_test_job(start, step): _job = SourceJob( start=start, step=step, delay=0, outputs=[ PicklePipe(9001), ] ) return _job
def fission_test_job(pipe_id_offset): # initiates a new job _job = JoinJob( inputs=[ PicklePipe(pipe_id_offset + 1), # this is the operator PicklePipe(pipe_id_offset + 2), PicklePipe(pipe_id_offset + 3), PicklePipe(pipe_id_offset + 4), ], outputs=[ PicklePipe(pipe_id_offset + 101), PicklePipe(pipe_id_offset + 102), PicklePipe(pipe_id_offset + 103), # This is the operator output ]) yield _job
REMOTE_ROOT = f"/home/{USER}/fission/" XML_FILE = None # Logging LOG_LEVEL = "DEBUG" LOG_FILE = "FISSION.log" DEBUG_WINDOW = True CLIENT_IP = "192.168.4.1" # a list of jobs (instance of BaseJob or subclass or path of csv file) JOBS = [ SourceJob(start_value=1, outputs=[ PicklePipe(1), ]), SourceJob(start_value=15, outputs=[ PicklePipe(2), ]), SourceJob(start_value=219, outputs=[ PicklePipe(3), ]), CSVSinkJob(path="test.csv", inputs=[ PicklePipe(1), PicklePipe(2), PicklePipe(3), ]) ]
# Logging LOG_LEVEL = "INFO" LOG_FILE = "FISSION.log" # Enter the clients ip within the network, must be visible for nodes CLIENT_IP = "192.168.4.1" # Debug window # Redirects stdout to console DEBUG_WINDOW = True # A list of jobs to be executed within the network. # This can be an instance of BaseJob or any of its subclasses. JOBS = [ SourceJob(outputs=[ PicklePipe(101), ]), SourceJob(outputs=[ PicklePipe(102), ]), SourceJob(outputs=[ PicklePipe(103), ]), JoinJob(inputs=[ PicklePipe(101), PicklePipe(102), PicklePipe(103), ], outputs=[ ReducePipe(105), ]),
# Enter the clients ip within the network, must be visible for nodes CLIENT_IP = "192.168.4.1" # Debug window # Redirects stdout to console DEBUG_WINDOW = True # A list of jobs to be executed within the network. # This can be an instance of BaseJob or any of its subclasses. JOBS = [ InteractiveJob(outputs=[ OperatorPipe(104), ]), SourceJob(outputs=[ PicklePipe(101), PicklePipe(201), ]), SourceJob(start=20, step=2, outputs=[ PicklePipe(102), PicklePipe(202), ]), SourceJob(step=-1, outputs=[ PicklePipe(103), PicklePipe(203), ]), JoinJob(inputs=[ OperatorPipe(104), PicklePipe(101), PicklePipe(102), PicklePipe(103),
PULSE_INTERVAL = 0.5 # Enter the clients ip within the network, must be visible for nodes CLIENT_IP = "192.168.0.31" # Debug window # Redirects stdout to console DEBUG_WINDOW = True # A list of jobs to be executed within the network. # This can be an instance of BaseJob or any of its subclasses # or a path to csv file defining jobs (see documentation). JOBS = [ ClockJob(outputs=[ PicklePipe(91), PicklePipe(92), ]), ica_readModule("/home/pi/afdwc/examples/source_separation/mix1.wav", inputs=[PicklePipe(91)], outputs=[ PicklePipe(1), PicklePipe(11), ]), ica_readModule("/home/pi/afdwc/examples/source_separation/mix2.wav", inputs=[PicklePipe(92)], outputs=[ PicklePipe(2), PicklePipe(12), ]), cov1svd_sqrtfn(
# Enter the clients ip within the network, must be visible for nodes CLIENT_IP = "192.168.0.31" # Debug window # Redirects stdout to console DEBUG_WINDOW = True # A list of jobs to be executed within the network. # This can be an instance of BaseJob or any of its subclasses # or a path to csv file defining jobs (see documentation). JOBS = [ ica_readModule( "/home/pi/afdwc/examples/source_separation/mix1.wav", outputs=[ PicklePipe(1), ] ), ica_readModule( "/home/pi/afdwc/examples/source_separation/mix2.wav", outputs=[ PicklePipe(2), ] ), cov1svd( inputs=[ PicklePipe(1), PicklePipe(2), ], outputs=[ PicklePipe(3),
# Logging LOG_LEVEL = "INFO" LOG_FILE = "FISSION.log" # Enter the clients ip within the network, must be visible for nodes CLIENT_IP = "192.168.4.1" # Debug window # Redirects stdout to console DEBUG_WINDOW = True # A list of jobs to be executed within the network. # This can be an instance of BaseJob or any of its subclasses. JOBS = [ InteractiveJob(outputs=[PicklePipe(1)]), InteractiveJob(outputs=[PicklePipe(2)]), MiddleJob(inputs=[ PicklePipe(1), PicklePipe(2), ], outputs=[PicklePipe(3)]), HeadJob(inputs=[PicklePipe(3)], outputs=[PicklePipe(4)]), CSVSinkJob(path='test.csv', inputs=[PicklePipe(4)]) ] # A list of nodes to be included in the network # This can be an instance of BaseNode or Multinode # or a path to csv file defining nodes (see documentation) NODES = [ BaseNode("192.168.4.3"), BaseNode("192.168.4.2"),
PULSE_INTERVAL = 0.5 # Enter the clients ip within the network, must be visible for nodes CLIENT_IP = "192.168.0.31" # Debug window # Redirects stdout to console DEBUG_WINDOW = True # A list of jobs to be executed within the network. # This can be an instance of BaseJob or any of its subclasses # or a path to csv file defining jobs (see documentation). JOBS = [ read_data(samples_per_packet=[32, 64, 128, 256, 512, 1024, 2048], outputs=[ PicklePipe(1), PicklePipe(2), PicklePipe(11), ]), dxcp_phat( inputs=[ PicklePipe(1), PicklePipe(2), ], outputs=[ PicklePipe(3), PicklePipe(4), PicklePipe(5), PicklePipe(12), ], ),
PULSE_INTERVAL = 0.5 # Enter the clients ip within the network, must be visible for nodes CLIENT_IP = "192.168.0.31" # Debug window # Redirects stdout to console DEBUG_WINDOW = True # A list of jobs to be executed within the network. # This can be an instance of BaseJob or any of its subclasses # or a path to csv file defining jobs (see documentation). JOBS = [ ClockJob( outputs=[ PicklePipe(91), PicklePipe(92), ] ), read_data( channel=0, inputs=[ PicklePipe(91), ], outputs=[ PicklePipe(1), PicklePipe(11), ] ), read_data( channel=1,
# Logging LOG_LEVEL = "INFO" LOG_FILE = "FISSION.log" # Enter the clients ip within the network, must be visible for nodes CLIENT_IP = "192.168.4.1" # Debug window # Redirects stdout to console DEBUG_WINDOW = True # A list of jobs to be executed within the network. # This can be an instance of BaseJob or any of its subclasses # or a path to csv file defining jobs (see documentation). JOBS = [ SourceJob(outputs=[PicklePipe(1)]), SourceJob(outputs=[PicklePipe(2)]), InteractiveJob(outputs=[InteractivePipe(3)]), MiddleJob(inputs=[PicklePipe(1), PicklePipe(2), InteractivePipe(3)], outputs=[PicklePipe(4)]), CSVSinkJob(inputs=[PicklePipe(4)], path="test.csv") ] # A list of nodes to be included in the network # This can be an instance of BaseNode or Multinode # or a path to csv file defining nodes (see documentation) NODES = [] # Optional XML file defining the whole network or a part of it
PULSE_INTERVAL = 0.5 # Enter the clients ip within the network, must be visible for nodes CLIENT_IP = "192.168.0.31" # Debug window # Redirects stdout to console DEBUG_WINDOW = True # A list of jobs to be executed within the network. # This can be an instance of BaseJob or any of its subclasses # or a path to csv file defining jobs (see documentation). JOBS = [ ica_readModule("/home/pi/afdwc/examples/source_separation/mix1.wav", outputs=[ PicklePipe(1), PicklePipe(11), ]), ica_readModule("/home/pi/afdwc/examples/source_separation/mix2.wav", outputs=[ PicklePipe(2), PicklePipe(12), ]), # ForwardingJob( # inputs=[ # PicklePipe(1), # PicklePipe(2) # ], # outputs=[ # PicklePipe(21), # PicklePipe(22),
PULSE_INTERVAL = 0.5 # Enter the clients ip within the network, must be visible for nodes CLIENT_IP = "192.168.0.31" # Debug window # Redirects stdout to console DEBUG_WINDOW = True # A list of jobs to be executed within the network. # This can be an instance of BaseJob or any of its subclasses # or a path to csv file defining jobs (see documentation). JOBS = [ read_data(channel=0, outputs=[ PicklePipe(1), PicklePipe(11), ]), read_data(channel=1, outputs=[ PicklePipe(2), PicklePipe(12), ]), # ForwardingJob( # inputs=[ # PicklePipe(1), # PicklePipe(2) # ], # outputs=[ # PicklePipe(21), # PicklePipe(22), # ]
# Enter the clients ip within the network, must be visible for nodes CLIENT_IP = "192.168.0.31" # Debug window # Redirects stdout to console DEBUG_WINDOW = True # A list of jobs to be executed within the network. # This can be an instance of BaseJob or any of its subclasses # or a path to csv file defining jobs (see documentation). JOBS = [ read_data(samples_per_packet=2048, soundfile_path= "/home/konrad/marvelo-demo/examples/demo_DXCP/signal_file.wav", outputs=[ PicklePipe(1), PicklePipe(2), ], logging_output=PicklePipe(11), name="read_data"), dxcp_phat(inputs=[ PicklePipe(1), PicklePipe(2), ], outputs=[ PicklePipe(3), PicklePipe(4), ], logging_output=PicklePipe(12), name="dxcp_phat"), print_results(inputs=[