diff --git a/docs/source/concepts/ComponentInfo.rst b/docs/source/concepts/ComponentInfo.rst index 32a3b7fe406a2679bd8147b11ef2fb24773402c0..6a53f50443231b8a08593ded34142b73e5c9e838 100644 --- a/docs/source/concepts/ComponentInfo.rst +++ b/docs/source/concepts/ComponentInfo.rst @@ -18,7 +18,7 @@ Python Interface Examples of using ``ComponentInfo`` in python -Print indices of detectors in "bank1" that are masked +**Print indices of detectors in "bank1" that are masked** .. testcode:: show_masked_detectors_in_bank @@ -34,6 +34,10 @@ Print indices of detectors in "bank1" that are masked if det_info.isMasked(int(det_index)): print('Masked detector index of bank1 is {}'.format(det_index)) +Output: + .. testoutput:: show_masked_detectors_in_bank Masked detector index of bank1 is 2 + +.. categories:: Concepts diff --git a/docs/source/concepts/DetectorInfo.rst b/docs/source/concepts/DetectorInfo.rst index 288e2ca301db14201a675cf31b936d6bf0777a95..52e0015122d8f3e07a00bb49bafe27b5a15ed642 100644 --- a/docs/source/concepts/DetectorInfo.rst +++ b/docs/source/concepts/DetectorInfo.rst @@ -1,8 +1,8 @@ .. _DetectorInfo: -============= +============ DetectorInfo -============= +============ .. contents:: :local: @@ -35,7 +35,10 @@ Example of using ``DetectorInfo`` in python mask_count += 1 print('masked {} detectors'.format(mask_count)) +Output: + .. testoutput:: mask_detectors masked 200 detectors +.. categories:: Concepts