Skip to content

advacam

borealis.detector.advacam

MinipixTPX3()

Bases: Detector

Provide support for Advacam Minipix TPX3.

Borealis currently only provides Windows libraries for Minipix TPX3.

Open the communication with Minipix detector

Source code in borealis/detector/advacam.py
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
def __init__(self):
    """Open the communication with Minipix detector"""
    with contextlib.chdir(pixet_dir):
        pypixet.start()
        self.pixet = pypixet.pixet
        # TODO: .devicesByType(pixet.PX_DEVTYPE_TPX3) only if I can get a TPX3 virtual device when none connected
        devices = self.pixet.devices()
        self.device = devices[0]

    full_name = self.device.fullName()
    super().__init__(full_name)

    dev_info = self.pixet.DevInfo()
    self.device.deviceInfo(dev_info)

    self.serial_number = dev_info.serial