Skip to content

Commit 6f2382c

Browse files
committed
Make a demo extra for tutorial deps
1 parent e926a60 commit 6f2382c

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

docs/tutorials/installation.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ the specific extra:
3232
- `ca` for EPICS Channel Access
3333
- `pva` for EPICS PVAccess
3434
- `tango` for Tango
35-
- `demo` for tutorial requirements like h5py and ipython
35+
- `sim` for simulated device requirements like h5py
36+
- `demo` for tutorial requirements like ipython and matplotlib
3637
- `testing` for testing requirements like pytest
3738

3839
E.g.:
3940
```
40-
$ python3 -m pip install ophyd-async[ca,demo]
41+
$ python3 -m pip install ophyd-async[ca,sim,demo]
4142
```
4243

4344
If you require a feature that is not currently released you can also install

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,19 @@ readme = "README.md"
2727
requires-python = ">=3.10"
2828

2929
[project.optional-dependencies]
30+
sim = ["h5py"]
3031
ca = ["aioca>=1.6"]
3132
pva = ["p4p>=4.2.0"]
32-
sim = ["h5py"]
3333
tango = ["pytango>=10.0.0"]
34+
demo = ["ipython", "matplotlib", "pyqt6"]
3435
dev = [
35-
"ophyd_async[pva]",
3636
"ophyd_async[sim]",
3737
"ophyd_async[ca]",
38+
"ophyd_async[pva]",
3839
"ophyd_async[tango]",
40+
"ophyd_async[demo]",
3941
"inflection",
40-
"ipython",
41-
"ipywidgets",
4242
"import-linter",
43-
"matplotlib",
4443
"myst-parser",
4544
"numpydoc",
4645
"ophyd",

src/ophyd_async/sim/_point_detector.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ async def _update_values(self, acquire_time: float):
8181

8282
@AsyncStatus.wrap
8383
async def trigger(self):
84-
start = time.time()
8584
for setter in self._value_signals.values():
8685
setter(0)
8786
await self._update_values(await self.acquire_time.get_value())
88-
print("Trigger took", time.time() - start)

0 commit comments

Comments
 (0)