Exemplo n.º 1
0
def test_equal_temperature():
    from zivid.camera_state import CameraState

    temperature1 = CameraState.Temperature(dmd=33)
    temperature2 = CameraState.Temperature(dmd=33)

    assert temperature1 == temperature2
 def to_temperature(internal_temperature):
     return CameraState.Temperature(
         dmd=internal_temperature.dmd.value,
         general=internal_temperature.general.value,
         led=internal_temperature.led.value,
         lens=internal_temperature.lens.value,
         pcb=internal_temperature.pcb.value,
     )