mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
added currentsource example for python
This commit is contained in:
10
python/examples/use_currentsource.py
Normal file
10
python/examples/use_currentsource.py
Normal file
@ -0,0 +1,10 @@
|
||||
from slsdet import Detector, currentSrcParameters
|
||||
|
||||
s = currentSrcParameters()
|
||||
s.enable_ = 1
|
||||
s.fix_= 1
|
||||
s.select_ = 10
|
||||
|
||||
|
||||
d = Detector()
|
||||
d.currentsource = s
|
@ -15,5 +15,7 @@ sp.dacSettleTime_ns = int(1e9)
|
||||
d = Mythen3()
|
||||
d.setScan(sp)
|
||||
|
||||
#or d.scan = sp
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user