mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
minor fix docs
This commit is contained in:
@ -17,13 +17,13 @@ using the built in hex() function.
|
|||||||
.. code-block :: python
|
.. code-block :: python
|
||||||
|
|
||||||
from slsdet import Detector
|
from slsdet import Detector
|
||||||
d = Detector()
|
>>> d = Detector()
|
||||||
>>> d.patwait0 = 0xaa
|
>>> d.patwait0 = 0xaa
|
||||||
>>> d.patwait0
|
>>> d.patwait0
|
||||||
170
|
170
|
||||||
|
|
||||||
# Convert to string
|
# Convert to string
|
||||||
>>> (d.patwait0)
|
>>> hex(d.patwait0)
|
||||||
'0xaa'
|
'0xaa'
|
||||||
|
|
||||||
For multiple values one can use a list comprehension to loop over the values.
|
For multiple values one can use a list comprehension to loop over the values.
|
||||||
|
Reference in New Issue
Block a user