Skip to content

Commit 37ac26f

Browse files
committed
improve controller.yaml - get demo working
1 parent 6a4cdd9 commit 37ac26f

File tree

5 files changed

+20
-19
lines changed

5 files changed

+20
-19
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,6 @@ lockfiles/
7070
# ruff cache
7171
.ruff_cache/
7272
*code-workspace
73+
74+
# auto-generated files
75+
opi/auto-generated/*.bob

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,23 @@
77

88
An example simulation IOC for testing fastCS
99

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.
1210

1311
Source | <https://github.com/DiamondLightSource/fastcs-example>
1412
:---: | :---:
15-
PyPI | `pip install fastcs-example`
13+
PyPI | `pip install fastcs-example[demo]`
1614
Docker | `docker run ghcr.io/diamondlightsource/fastcs-example:latest`
1715
Releases | <https://github.com/DiamondLightSource/fastcs-example/releases>
1816

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:
17+
# Usage
2218

23-
```python
24-
from fastcs_example import __version__
19+
Start the simulation temperature controller by running the following command:
2520

26-
print(f"Hello fastcs_example {__version__}")
21+
```bash
22+
tickit all src/fastcs_example/simulation/temp_controller.yaml
2723
```
2824

29-
Or if it is a commandline tool then you might put some example commands here:
25+
Start the fastCS IOC by running the following command:
3026

31-
```
32-
python -m fastcs_example --version
27+
```bash
28+
fastcs-example run src/fastcs_example/controller.yaml
3329
```

opi/auto-generated/.placeholder

Whitespace-only changes.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ dev = [
3131
"ruff",
3232
"tox-direct",
3333
"types-mock",
34+
"tickit~=0.4.3",
3435
]
36+
demo = ["tickit~=0.4.3"]
3537

3638
[project.scripts]
3739
fastcs-example = "fastcs_example.__main__:main"
40+
fastcs-demo = "fastcs.demo.__main__:main"
3841

3942
[project.urls]
4043
GitHub = "https://github.com/DiamondLightSource/fastcs-example"

src/fastcs_example/controller.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ controller:
33
ip_settings:
44
ip: "localhost"
55
port: 25565
6-
num_ramp_controllers: 4
6+
num_ramp_controllers: 1
77
transport:
8-
- gql:
9-
host: localhost
10-
port: 8083
11-
log_level: info
8+
- pva_ioc:
9+
pv_prefix: DEMO
10+
gui:
11+
output_path: opi/auto-generated/pva_example.bob
1212
- ca_ioc:
1313
pv_prefix: DEMO
1414
gui:
15-
title: Temperature Controller Demo
16-
output_path: ./demo.bob
15+
output_path: opi/auto-generated/ca_example.bob

0 commit comments

Comments
 (0)