mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-12 21:03:53 +01:00
added examples
This commit is contained in:
1 parent
8ef6f32be6
commit
1f811dfabd
2 files changed
+43
No files matched your search
@@ -0,0 +1,13 @@
|
||||
from slsdet import Detector, Eiger, dacIndex
|
||||
|
||||
|
||||
|
||||
#Using the general detector class and calling with an index
|
||||
d = Detector()
|
||||
fpga_temp = d.getTemperature(dacIndex.TEMPERATURE_FPGA)
|
||||
print(f'fpga_temp: {fpga_temp}\n')
|
||||
|
||||
#Using the specialized detector class
|
||||
e = Eiger()
|
||||
print("All temperatures for Eiger\n")
|
||||
print(e.temp)
|
||||
Reference in new issue
Block a user