Skip to content

Commit 96106d9

Browse files
committed
Remove old docs, add sphinx docs
Move info from old virtac/README.rst, virtac/FEEDBACK_SYSTEMS.rst into sphinx docs. Changed main README.rst to markdown and changed to work better with sphinx. Deleted some unused docs files. Updated conf.py to allow use of html images
1 parent ad91f69 commit 96106d9

File tree

15 files changed

+210
-420
lines changed

15 files changed

+210
-420
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@
33
[![PyPI](https://img.shields.io/pypi/v/atip.svg)](https://pypi.org/project/atip)
44
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
55

6-
# atip
76

8-
Accelerator Toolbox Interface for Pytac
7+
# ATIP - Accelerator Toolbox Interface for Pytac
98

10-
This is where you should write a short paragraph that describes what your module does,
11-
how it does it, and why people should use it.
9+
ATIP is an addition to [Pytac](<https://github.com/DiamondLightSource/pytac>),
10+
a framework for controlling particle accelerators. ATIP adds a simulator to
11+
Pytac, which can be used and addressed in the same way as a real accelerator.
12+
13+
ATIP enables the easy offline testing of high level accelerator
14+
controls applications, by either of two methods:
15+
16+
* By replacing the real accelerator at the point where it is addressed by the
17+
software, in the Pytac lattice object;
18+
19+
* In a standalone application as a "virtual accelerator", publishing the same
20+
control system interface as the live machine. At Diamond Light Source this
21+
has been implemented with EPICS, and run on a different port to the
22+
operational control system. So the only change required to test software is
23+
to configure this EPICS port.
24+
25+
The python implementation of
26+
[Accelerator Toolbox](<https://github.com/atcollab/at>) (pyAT) is used for the
27+
simulation.
1228

1329
Source | <https://github.com/DiamondLightSource/atip>
1430
:---: | :---:
1531
PyPI | `pip install atip`
32+
Docker | `docker run ghcr.io/diamondlightsource/atip:latest`
1633
Documentation | <https://diamondlightsource.github.io/atip>
34+
Installation | <https://diamondlightsource.github.io/atip/tutorials/installation>
1735
Releases | <https://github.com/DiamondLightSource/atip/releases>
1836

19-
This is where you should put some images or code snippets that illustrate
20-
some relevant examples. If it is a library then you might put some
21-
introductory code here:
22-
23-
```python
24-
from atip import __version__
25-
26-
print(f"Hello atip {__version__}")
27-
```
28-
29-
Or if it is a commandline tool then you might put some example commands here:
30-
31-
```
32-
python -m atip --version
33-
```
34-
3537
<!-- README only content. Anything below this line won't be included in index.md -->
36-
37-
See https://diamondlightsource.github.io/atip for more detailed documentation.

README.rst

Lines changed: 0 additions & 216 deletions
This file was deleted.

docs/_api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ API
1414
:recursive:
1515

1616
atip
17+
virtac

docs/atip.rst

Lines changed: 0 additions & 39 deletions
This file was deleted.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
]
5353

5454
# So we can use the ::: syntax
55-
myst_enable_extensions = ["colon_fence"]
55+
myst_enable_extensions = ["colon_fence", "html_image"]
5656

5757
# If true, Sphinx will warn about all references where the target cannot
5858
# be found.

docs/explanations.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ Explanations of how it works and why it works that way.
66
:maxdepth: 1
77
:glob:
88
9+
explanations/implementation_details
10+
explanations/feedback_systems
911
explanations/*
1012
```

src/virtac/FEEDBACK_SYSTEMS.rst renamed to docs/explanations/feedback_systems.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
================
2-
Feedback Systems
3-
================
1+
# Feedback Systems
2+
43

54
Currently supported "slow" feedback systems at Diamond are:
65

@@ -12,8 +11,7 @@ Currently supported "slow" feedback systems at Diamond are:
1211
In order to support these various feedback systems, the virtual accelerator
1312
makes several adjustments and additions to core ATIP functionality.
1413

15-
Mirrored Records:
16-
-----------------
14+
## Mirrored Records:
1715

1816
The ability to create mirror records is provided. A mirror record can take
1917
value(s) from one or more records as inputs and set its output dependent on
@@ -36,8 +34,7 @@ For more information on mirror records see docstrings of the classes in
3634
``mirror_objects.py``, the relevant methods on ``ATIPServer``, and
3735
``generate_mirrored_pvs`` in ``create_csv.py``.
3836

39-
Masks:
40-
------
37+
## Masks:
4138

4239
Masks are wrappers for existing functions to enable them to be addressed using
4340
a different syntax than normal. The types of masks are:
@@ -54,8 +51,7 @@ a different syntax than normal. The types of masks are:
5451
record object, ``.set(value)`` simply calls ``caput(stored_pv, value)``.
5552

5653

57-
Tune feedback
58-
-------------
54+
## Tune feedback
5955

6056
As mentioned above, the ``callback_offset`` class allows the tune feedback
6157
system to function exactly as it does on the live machine.

0 commit comments

Comments
 (0)