-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
converted docs and made ruff complient
- Loading branch information
1 parent
7cf6402
commit 61262e5
Showing
22 changed files
with
427 additions
and
379 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 6 additions & 11 deletions
17
...s/decisions/0003-make-library-sans-io.rst → ...ns/decisions/0003-make-library-sans-io.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
3. Sans-IO pandABlocks-client | ||
============================= | ||
# 3. Sans-IO pandABlocks-client | ||
|
||
Date: 2021-08-02 (ADR created retroactively) | ||
|
||
Status | ||
------ | ||
## Status | ||
|
||
Accepted | ||
|
||
Context | ||
------- | ||
## Context | ||
|
||
Ensure PandABlocks-client works sans-io. | ||
|
||
Decision | ||
-------- | ||
## Decision | ||
|
||
We will ensure pandablocks works sans-io `sans-io <sans-io>`. | ||
|
||
Consequences | ||
------------ | ||
## Consequences | ||
|
||
We have the option to use an asyncio client or a blocking client. | ||
We have the option to use an asyncio client or a blocking client. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 9 additions & 10 deletions
19
docs/how-to/introspect-panda.rst → docs/how-to/introspect-panda.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
How to introspect a PandA | ||
=========================== | ||
# How to introspect a PandA | ||
|
||
Using a combination of `commands <pandablocks.commands>` it is straightforward to query the PandA | ||
to list all blocks, and all fields inside each block, that exist. | ||
to list all blocks, and all fields inside each block, that exist. | ||
|
||
Call the following script, with the address of the PandA as the first and only command line argument: | ||
|
||
```{literalinclude} ../../examples/introspect_panda.py | ||
``` | ||
|
||
.. literalinclude:: ../../../examples/introspect_panda.py | ||
|
||
This script can be found in ``examples/introspect_panda.py``. | ||
This script can be found in `examples/introspect_panda.py`. | ||
|
||
By examining the `BlockInfo` structure returned from `GetBlockInfo` for each Block the number | ||
and description may be acquired for every block. | ||
|
||
By examining the `FieldInfo` structure (which is fully printed in this example) the ``type``, | ||
``sub-type``, ``description`` and ``label`` may all be found for every field. | ||
By examining the `FieldInfo` structure (which is fully printed in this example) the `type`, | ||
`sub-type`, `description` and `label` may all be found for every field. | ||
|
||
Lastly the complete list of every ``BITS`` field in the ``PCAP`` block are gathered and | ||
printed. See the documentation in the `Field Types <https://pandablocks-server.readthedocs.io/en/latest/fields.html?#field-types>`_ | ||
Lastly the complete list of every `BITS` field in the `PCAP` block are gathered and | ||
printed. See the documentation in the [Field Types](https://pandablocks-server.readthedocs.io/en/latest/fields.html?#field-types) | ||
section of the PandA Server documentation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# How to efficiently poll for changes | ||
|
||
Write something about using `*CHANGES` like Malcolm does. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.