Skip to content

Commit 91982a2

Browse files
authored
Merge pull request #1 from ISISComputingGroup/docs
Docs
2 parents 3744419 + 27e8a15 commit 91982a2

File tree

148 files changed

+5990
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+5990
-1
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* text=auto
2+
*.md text
3+
*.rst text
4+
*.rest text
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: sphinx
2+
3+
on: [push, workflow_call]
4+
5+
jobs:
6+
spellcheck:
7+
runs-on: "windows-latest"
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
fetch-depth: 0
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version: "3.12"
15+
- name: install requirements
16+
run: pip install -e .[dev]
17+
- name: run spellcheck
18+
run: sphinx-build -E -a -W --keep-going -b spelling doc _build
19+
build:
20+
uses: ISISComputingGroup/reusable-workflows/.github/workflows/sphinx.yml@main
21+
secrets: inherit
22+
with:
23+
deploy-branch: "docs"

.github/workflows/nightly.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: nightly
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch:
6+
7+
jobs:
8+
nightly:
9+
uses: ./.github/workflows/documentation.yml

.gitignore

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# poetry
98+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102+
#poetry.lock
103+
104+
# pdm
105+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106+
#pdm.lock
107+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108+
# in version control.
109+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
110+
.pdm.toml
111+
.pdm-python
112+
.pdm-build/
113+
114+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115+
__pypackages__/
116+
117+
# Celery stuff
118+
celerybeat-schedule
119+
celerybeat.pid
120+
121+
# SageMath parsed files
122+
*.sage.py
123+
124+
# Environments
125+
.env
126+
.venv
127+
env/
128+
venv/
129+
ENV/
130+
env.bak/
131+
venv.bak/
132+
133+
# Spyder project settings
134+
.spyderproject
135+
.spyproject
136+
137+
# Rope project settings
138+
.ropeproject
139+
140+
# mkdocs documentation
141+
/site
142+
143+
# mypy
144+
.mypy_cache/
145+
.dmypy.json
146+
dmypy.json
147+
148+
# Pyre type checker
149+
.pyre/
150+
151+
# pytype static type analyzer
152+
.pytype/
153+
154+
# Cython debug symbols
155+
cython_debug/
156+
157+
.idea/
158+
.vscode/
159+
160+
.idea/*
161+
.venv/
162+
ibex_developers_manual.egg-info/
163+
build/
164+
_build/

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# ibex_user_manual
2-
See https://github.com/ISISComputingGroup/ibex_user_manual/wiki/
2+
3+
See https://isiscomputinggroup.github.io/ibex_user_manual

doc/Device-Specific-Guidance.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Device-specific guidance
2+
3+
This page contains information for a user on specific devices. The devices on this page have caused trouble or have some subtleties. If you are having trouble with a device and it is not listed below please let us know which device and what your issues were so that we can document it below.
4+
5+
```{toctree}
6+
:maxdepth: 1
7+
:titlesonly:
8+
:glob:
9+
10+
device_specific/*
11+
```
12+

doc/FAQ.rst

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
FAQ
2+
###
3+
4+
In this section of the IBEX user manual, we have compiled a list of frequently asked questions. If your question about IBEX is not answered below, please let us (the Experiment Controls team) know. If your question is likely to be asked by others, we'll add it to the list.
5+
6+
.. contents:: **List of Frequently Asked Questions**
7+
8+
IBEX Processes and Support
9+
==========================
10+
11+
.. _report_a_problem:
12+
13+
How do I report a problem or get help with IBEX?
14+
------------------------------------------------
15+
16+
**A:** For a non-urgent issue use the `Instrument Problem/Bug Report <http://sparrowhawk.nd.rl.ac.uk/footprints/?product=PC%20Instrument%20Control&amp;format=pcinst>`_ page or email [email protected]
17+
18+
When reporting a problem, it is helpful to include the version numbers of your IBEX Client and Server in your report. To view the version numbers select ``Help > About`` from the menu bar in the IBEX Client.
19+
20+
For urgent issues call **1763** (RAL site landline or ZOOM phone) or **01235394488**
21+
22+
How do I install IBEX Server?
23+
-----------------------------
24+
25+
To install the IBEX Server - see :ref:`installing_ibex_server`.
26+
27+
How do I install IBEX Client?
28+
-----------------------------
29+
30+
To install IBEX Client - see :ref:`installing_ibex_client`.
31+
32+
Can I run IBEX and SECI at the same time?
33+
-----------------------------------------
34+
35+
In a word - No. Running two control programs on any system is a bad idea - which program has control? If you were to run IBEX and SECI on the same system, the two would contend for control of individual devices. It would not be clear which device was controlled by which program. The results would be unpredictable.
36+
37+
Which version of Python does IBEX use?
38+
--------------------------------------
39+
40+
IBEX currently uses Python 3.11.2.
41+
42+
Where can I learn about Python?
43+
-------------------------------
44+
45+
Python is the scripting language used by IBEX. `genie_python` is a python library implementing ISIS-specific functions. If you are new to Python, we suggest you consult the excellent :external+mantid:ref:`introduction_to_python` created by the Mantid team.
46+
47+
48+
How do I view which new IBEX features have been requested or are being worked on?
49+
---------------------------------------------------------------------------------
50+
51+
There are internal lists showing priorities available covering the work which will feed into IBEX, please ask the experiment controls group or your group leader if you need to see these. These lists give you an idea of the long term work, and the priorities at that level.
52+
IBEX is released and deployed to each instrument at least once a year, with patches as required. To see what is being worked on for the next release, you will need to find the most recent PI project on https://github.com/orgs/ISISComputingGroup/projects, note that these are in the format PI_YYYY_MM, with the month being the one the PI starts in.
53+
The shortest time scale we consider is a sprint, and you can view this information on GitHub at https://github.com/ISISComputingGroup/IBEX/projects/1.
54+
There is also a long list of issues on GitHub that can be viewed at https://github.com/ISISComputingGroup/IBEX/issues. Please note, this is a rather long list and not very friendly to browse through unless you already know what you're looking for (e.g. a device name).
55+
56+
57+
Running IBEX
58+
============
59+
60+
How do I start IBEX Server?
61+
---------------------------
62+
63+
To start IBEX Server - see :ref:`starting_ibex_server`.
64+
65+
How do I stop IBEX Server?
66+
--------------------------
67+
68+
To stop IBEX Server - see :ref:`stopping_ibex_server`.
69+
70+
Can I switch from running IBEX to SECI and vice-versa?
71+
------------------------------------------------------
72+
73+
Yes, it is possible to switch from running IBEX to SECI or to switch from SECI to IBEX, but you have to be careful. See :doc:`obsolete/Switching-Between-IBEX-and-SECI` for details.
74+
75+
Can I write scripts to control my experiment?
76+
---------------------------------------------
77+
78+
Yes, you can. Scripting in IBEX is done using python (with support from a library called genie_python). See :doc:`Scripting` for more details.
79+
80+
What do I look at if there are no RAW frames when Collecting Data?
81+
------------------------------------------------------------------
82+
83+
If when collecting data no raw frames are counted (see `Good / Raw` Frames on the dashboard) then:
84+
85+
Timing is ISIS:
86+
Either ISIS is off, or there is a problem with the ToF (ISIS) signal. Check other instruments to find out.
87+
88+
Timing is SMP:
89+
Chopper is not spinning, or there is a problem with the signal
90+
91+
Consider swapping the timing source to help diagnose the problem.
92+
93+
What do I look at if there are no GOOD frames when Collecting Data?
94+
-------------------------------------------------------------------
95+
96+
If there are RAW frames but no good frames then the count is being vetoed. Open the DAE perspective and select the Vetoes tab to see what is vetoing the frame.
97+
98+
FIFO veto:
99+
Too many counts in a frame, e.g. noisy detector, jaws opened too wide
100+
101+
SMP veto:
102+
chopper out of phase with ISIS, or no ISIS signal
103+
104+
External veto{0-3}:
105+
could be an additional chopper, the shutter or moderator
106+
107+
Can I change what my graphs look like in the log plotter or OPI?
108+
----------------------------------------------------------------
109+
110+
**Yes!** There are lots of setting exposed by the native control. These include graph title, axis font type and size, trace line colour, line type, and line width. To reach these settings for a graph in an OPI do the following:
111+
112+
#. To show the toolbar on an OPI graph right click and select Show/Hide Graph Toolbar.
113+
#. Then click the settings button (leftmost icon with a spanner and screwdriver on it)
114+
#. Click on the tabs to find what you want to change. The graph is the first panel, axes on the second and traces (with a drop down to select for which trace) is on the third.
115+
116+
To open the settings in a log plotter graph, just right click and click "Open Properties Panel".
117+
118+
.. _faq_find_pv:
119+
120+
How do I find a specific PV?
121+
----------------------------
122+
123+
PVs in IBEX should all follow the naming convention as specified in :doc:`/concepts/PV-Naming-Conventions`. You can search for PVs that are available on your instrument by using the `Select PV` button in the :ref:`manage_configs_blocks`. Finally, if you can see the value that you want on an OPI you can hover over it to get the PV name or right click and `Show PV Info`.
124+
125+
How do I set a value to change when I change configuration/component?
126+
---------------------------------------------------------------------
127+
128+
This can be accomplished by using :ref:`manage_configs_pv_values`.
129+
130+
Why are some blocks and their PV addresses greyed-out in the "Edit Configuration" dialogue box?
131+
-----------------------------------------------------------------------------------------------
132+
133+
This is because they are part of a `component` and can't be edited from a host configuration. To make changes to the "master" copy, open the relevant component from the menu `Configuration -> Components -> Edit Component`. See the note at the bottom of the :ref:`manage_configs_blocks` section for more information.
134+
135+
136+
Scripting in IBEX
137+
=================
138+
139+
In the scripting view I don't want the arguments when I autocomplete
140+
--------------------------------------------------------------------
141+
142+
In the scripting console type `g.` will show a list of possible genie_python commands. If you select one of these or type to narrow down the possibilities, pressing return will autocomplete the method name including the parameters. However, sometimes you will not want all the parameters, so instead of pressing <return> press <ctrl> + <return>, this will give only the function name without any parenthesis or arguments.
143+
144+
When I load script I get an error complaining about unicodeescape
145+
-----------------------------------------------------------------
146+
147+
If you try to load a script and you get the following error:
148+
149+
.. code-block::
150+
151+
>>> `g.load_script('c:\scripts\NiceScript.py')`
152+
File "<ipython-input-7-c5705547e6ca>", line 1
153+
g.load_script('c:\scripts\NiceScript.py')
154+
^
155+
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 10-11: malformed \N character escape
156+
157+
The problem is you have not escaped the string correctly, in python the slash character, `\\`, is an escape character used to create things like newline characters. In this command, the `\\N` is a newline character and is causing python trouble. You can either:
158+
159+
#. Place an `r` before the string (called a raw string) this makes it ignore escapes except for quote marks
160+
- ``g.load_script(r'c:\\scripts\\NiceScript.py')``
161+
#. Escape the slashes
162+
- ``g.load_script('c:\\\\scripts\\\\NiceScript.py')``
163+
#. Just use the default script path so:
164+
- ``g.load_script('NiceScript.py')``
165+
166+
Can I run scripts from Mantid?
167+
-----------------------------------------------------------------
168+
169+
`genie_python` - the library which provides convenience functions such as `cset` and `cget` in order to run scripts can be installed from `pip`, and is available on pypi under https://pypi.org/project/genie-python/ .

0 commit comments

Comments
 (0)