mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +02:00
added dacvalues to python
This commit is contained in:
parent
6cd8bbcb12
commit
6399d1bdfb
@ -17,7 +17,7 @@ import datetime as dt
|
||||
from functools import wraps
|
||||
from collections import namedtuple
|
||||
import socket
|
||||
|
||||
import numpy as np
|
||||
|
||||
def freeze(cls):
|
||||
cls._frozen = False
|
||||
@ -641,6 +641,13 @@ class Detector(CppDetectorApi):
|
||||
def daclist(self):
|
||||
return self.getDacList()
|
||||
|
||||
@property
|
||||
def dacvalues(self):
|
||||
return {
|
||||
dac.name.lower(): np.array(self.getDAC(dac, False))
|
||||
for dac in self.getDacList()
|
||||
}
|
||||
|
||||
@property
|
||||
def timinglist(self):
|
||||
return self.getTimingModeList()
|
||||
|
Loading…
x
Reference in New Issue
Block a user