Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
d26a23fa
Commit
d26a23fa
authored
6 years ago
by
Antti Soininen
Browse files
Options
Downloads
Patches
Plain Diff
Add ComponentInfo and DetectorInfo to the Techniques concepts page Re
#24597
parent
5b9d2850
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/source/concepts/ComponentInfo.rst
+5
-1
5 additions, 1 deletion
docs/source/concepts/ComponentInfo.rst
docs/source/concepts/DetectorInfo.rst
+5
-2
5 additions, 2 deletions
docs/source/concepts/DetectorInfo.rst
with
10 additions
and
3 deletions
docs/source/concepts/ComponentInfo.rst
+
5
−
1
View file @
d26a23fa
...
...
@@ -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
This diff is collapsed.
Click to expand it.
docs/source/concepts/DetectorInfo.rst
+
5
−
2
View file @
d26a23fa
.. _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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment