This commit is contained in:
Erik Frojdh
2020-01-21 09:07:27 +01:00
parent 4b7edf2e62
commit 5667353f47
4 changed files with 8 additions and 18 deletions

View File

@ -2,10 +2,13 @@
Utility functions that are useful for testing and troubleshooting
but not directly used in controlling the detector
"""
from collections import namedtuple
import _sls_detector #C++ lib
import functools
Geometry = namedtuple('Geometry', ['x', 'y'])
def get_set_bits(mask):
@ -65,3 +68,4 @@ def eiger_register_to_time(register):
clocks = register >> 3
exponent = register & 0b111
return clocks*10**exponent / 100e6