necst-telescope / necst

:gem: NEw Control System for Telescope
https://necst-telescope.github.io/necst/
MIT License
3 stars 0 forks source link

Fix `chopper_sim`: adding `ChopperController` #216

Closed TatsumiISHIKAWA closed 1 year ago

TatsumiISHIKAWA commented 1 year ago

Description

Where Bug? necst/executors/chopper_sim.py

def configure_executor() -> MultiThreadedExecutor:
    executor = MultiThreadedExecutor()
    nodes = [
        ChopperController, # here.
    ]
    _ = [executor.add_node(n) for n in nodes]
    return executor

Expected behavior

def configure_executor() -> MultiThreadedExecutor:
    executor = MultiThreadedExecutor()
    nodes = [
        ChopperController(),
    ]
    _ = [executor.add_node(n) for n in nodes]
    return executor