Commit efaacfe7 authored by Jerome Carnis's avatar Jerome Carnis 🦊
Browse files

deviceEigerP11.py: add some types

parent b755a820
......@@ -4,7 +4,7 @@ import os
import time
from time import sleep
from threading import Thread
from typing import Any, Dict, List, Optional
from typing import Any, Dict, List, Optional, Tuple
import numpy as np
......@@ -62,7 +62,12 @@ class DeviceTangoEigerDetector(DeviceTango):
"""
def __init__(
self, path, file_writer=None, eiger_stream=None, device_id=None, config=None
self,
path: str,
file_writer: Optional[Device] = None,
eiger_stream: Optional[Device] = None,
device_id: Optional[str] = None,
config: Optional[Dict[Tuple[str, str], Any]] = None,
) -> None:
self.file_writer = file_writer
self.eiger_stream = eiger_stream
......@@ -117,7 +122,9 @@ class DeviceTangoEigerDetector(DeviceTango):
min_value=0,
)
def _config_interface(self, saving_directory, prefix, nb_frames=1) -> None:
def _config_interface(
self, saving_directory: str, prefix: str, nb_frames: int = 1
) -> None:
"""
Configure the Eiger interface.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment