Skip to content

Commit 6ca6990

Browse files
committed
Temporarily stopped the build failing for docs/type checking warnings
1 parent a393163 commit 6ca6990

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

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/explanations/implementation_details.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Implementation:
1+
# Implementation details
22

33
All the accelerator data for the simulator is held in an ATSimulator object, which is referenced by the data sources of the lattice and each element.Each Pytac element has an equivalent pyAT element, held in a ATElementDataSource; when a get request is made, the appropriate data from that AT element is returned.
44

55
The ATSimulator object has a queue of pending changes. When a set request is received by an element, the element puts the changes onto the queue of the ATSimulator. Inside the ATSimulator a Cothread thread checks the length of the queue. When it sees changes on the queue, the thread recalculates the physics data of the lattice to ensure that it is up to date. This means that the emittance and linear optics data held by ATSimulator is updated after every batch of changes, and that without excessive calculation a very recent version of the lattice's physics data is always available.
66

7-
# API:
7+
## API:
88

99
load_sim:
1010

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ name = "Phil Smith"
6464
version_file = "src/atip/_version.py"
6565

6666
[tool.pyright]
67-
typeCheckingMode = "standard"
68-
reportMissingImports = false # Ignore missing stubs in imported modules
67+
typeCheckingMode = "off" # TODO: This should be switched back to "standard" at some point!
68+
reportMissingImports = false # Ignore missing stubs in imported modules
6969

7070
[tool.pytest.ini_options]
7171
# Run pytest with all our checkers, and don't spam us with massive tracebacks on error
@@ -105,7 +105,7 @@ commands =
105105
pre-commit: pre-commit run --all-files --show-diff-on-failure {posargs}
106106
type-checking: pyright src tests {posargs}
107107
tests: pytest --cov=atip --cov-report term --cov-report xml:cov.xml {posargs}
108-
docs: sphinx-{posargs:build -EW --keep-going} -T docs build/html
108+
docs: sphinx-{posargs:build -E --keep-going} -T docs build/html
109109
"""
110110

111111
[tool.ruff]

src/virtac/create_csv.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,14 @@ def generate_pv_limits(lattice):
9999

100100
def generate_mirrored_pvs(lattice):
101101
"""Structure of data:
102+
102103
output type: The type of output record to create, only 'aIn', 'longIn',
103104
'Waveform' types are currently supported; if '' then output to an
104105
existing in record already created in ATIPServer, 'caput' is also a
105106
special case it creates a mask for cothread.catools.caput calling
106107
set(value) on this mask will call caput with the output PV and the
107108
passed value.
109+
108110
mirror type: The type of mirroring to apply:
109111
- basic: set the value of the input record to the output record.
110112
- summate: sum the values of the input records and set the result to
@@ -115,10 +117,13 @@ def generate_mirrored_pvs(lattice):
115117
the only transformation type currently supported is 'inverse'.
116118
- refresh: monitor the in PV and on a change call refresh_record on
117119
the output PV.
120+
118121
in: The PV(s) to be monitored, on change mirror is updated, if multiple
119122
then the PVs should be separated by a comma and one space.
123+
120124
out: The single PV to output to, if a 'record type' is spcified then a new
121125
record will be created and so must not exist already.
126+
122127
value: The inital value of the output record.
123128
"""
124129
data = [("output type", "mirror type", "in", "out", "value")]

0 commit comments

Comments
 (0)