Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cfel-sc-public
Kamzik3
Commits
efaacfe7
Commit
efaacfe7
authored
May 19, 2022
by
Jerome Carnis
🦊
Browse files
deviceEigerP11.py: add some types
parent
b755a820
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamzik3/devices/deviceEigerP11.py
View file @
efaacfe7
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment