Skip to content

controller_device

plantimager.commons.controller_device Link

ControllerDevice Link

ControllerDevice()

Bases: ABC

Abstract class for controller device.

Source code in plantimager/commons/controller_device.py
17
18
def __init__(self):
    pass

camera_names abstractmethod Link

camera_names()

Return the list of camera names.

Source code in plantimager/commons/controller_device.py
58
59
60
61
62
@RPCProperty(notify=cameraNamesChanged)
@abstractmethod
def camera_names(self) -> list[str]:
    """Return the list of camera names."""
    pass

max_progress abstractmethod Link

max_progress()

Return the maximum progress of the scan.

Source code in plantimager/commons/controller_device.py
46
47
48
49
50
@RPCProperty(notify=maxProgressChanged)
@abstractmethod
def max_progress(self) -> int:
    """Return the maximum progress of the scan."""
    pass

progress abstractmethod Link

progress()

Return the current progress of the scan.

Source code in plantimager/commons/controller_device.py
40
41
42
43
44
@RPCProperty(notify=progressChanged)
@abstractmethod
def progress(self) -> int:
    """Return the current progress of the scan."""
    pass

ready_to_scan abstractmethod Link

ready_to_scan()

Return whether the controller is ready to start a scan.

Source code in plantimager/commons/controller_device.py
52
53
54
55
56
@RPCProperty(notify=readyToScanChanged)
@abstractmethod
def ready_to_scan(self) -> bool:
    """Return whether the controller is ready to start a scan."""
    pass

run_scan abstractmethod Link

run_scan()

Start the scan.

Source code in plantimager/commons/controller_device.py
35
36
37
38
@abstractmethod
def run_scan(self):
    """Start the scan."""
    pass

set_config abstractmethod Link

set_config(config)

Send a configuration dictionary to the controller.

Source code in plantimager/commons/controller_device.py
25
26
27
28
@abstractmethod
def set_config(self, config: dict):
    """Send a configuration dictionary to the controller."""
    pass

set_dataset_name abstractmethod Link

set_dataset_name(name)

Set the name of the dataset to be created.

Source code in plantimager/commons/controller_device.py
30
31
32
33
@abstractmethod
def set_dataset_name(self, name: str):
    """Set the name of the dataset to be created."""
    pass

set_db_url abstractmethod Link

set_db_url(url)

Set the database URL for the controller.

Source code in plantimager/commons/controller_device.py
20
21
22
23
@abstractmethod
def set_db_url(self, url: str):
    """Set the database URL for the controller."""
    pass