Skip to content

Commit 2d1bbdf

Browse files
committedMar 25, 2015
doc/manual/faq: more minor details
1 parent bd2f6ea commit 2d1bbdf

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed
 

Diff for: ‎doc/manual/faq.rst

+11-12
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FAQ
44
How do I ...
55
============
66

7-
override the `sysclk` frequency of just one dds?
7+
override the `sysclk` frequency of just one DDS?
88
------------------------------------------------
99

1010
Override the parameter using an argument in the DDB.
@@ -18,15 +18,14 @@ Names need to be unique.
1818
enforce functional dependencies between parameters?
1919
---------------------------------------------------
2020

21-
If you want to override a parameter `b` in the PDB to be `b = 2*a`,
21+
If you want to override a parameter ``b`` in the PDB to be ``b = 2*a``,
2222
use wrapper experiments, overriding parameters by passing them to the
2323
experiment's constructor.
2424

25-
get rid of `DBKeys`?
26-
--------------------
25+
get rid of ``DBKeys``?
26+
----------------------
2727

28-
`DBKeys` enforces valid parameter/argument names, references
29-
keys in PDB and hints at metadata on how values can be retrieved.
28+
``DBKeys`` references keys in PDB, DDB and RDB.
3029

3130
write a generator feeding a kernel feeding an analyze function?
3231
---------------------------------------------------------------
@@ -49,24 +48,24 @@ write a generator feeding a kernel feeding an analyze function?
4948
def do(self, i):
5049
return i
5150

52-
create and use variable lengths arrays?
53-
------------------------------------------------
51+
create and use variable lengths arrays in kernels?
52+
--------------------------------------------------
5453

5554
Don't. Preallocate everything. Or chunk it and e.g. read 100 events per
5655
function call, push them upstream and retry until the gate time closes.
5756

5857
execute multiple slow controller RPCs in parallel without losing time?
5958
----------------------------------------------------------------------
6059

61-
Use `threading.Thread`: portable, fast, simple for one-shot calls.
60+
Use ``threading.Thread``: portable, fast, simple for one-shot calls.
6261

6362
write part of my experiment as a coroutine/asyncio task/generator?
6463
------------------------------------------------------------------
6564

66-
You can not change the API that your experiment exposes: `__init__()`,
67-
`build()`, `run()` and `analyze()` need to be regular functions, not
65+
You can not change the API that your experiment exposes: ``__init__()``,
66+
``build()``, ``run()`` and ``analyze()`` need to be regular functions, not
6867
generators or asyncio coroutines. That would make reusing your own code in
6968
sub-experiments difficult and fragile. You can however always use the
70-
scheduler API to achieve the same (`scheduler.yield(duration=0)`)
69+
scheduler API to achieve the same (``scheduler.yield(duration=0)``)
7170
or wrap your own generators/coroutines/tasks in regular functions that
7271
you then expose as part of the API.

0 commit comments

Comments
 (0)
Please sign in to comment.