Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #23 +/- ##
==========================================
- Coverage 26.39% 25.30% -1.09%
==========================================
Files 5 5
Lines 610 648 +38
==========================================
+ Hits 161 164 +3
- Misses 449 484 +35 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
efdce13 to
a92b666
Compare
a92b666 to
2ef4464
Compare
A1L, A2L, A1N and A2N may also want adding? They are quadrupoles but I dont know if they are needed for the feedbacks.
Some PVs end up being named multiple times in certain edge cases where multiple pyAT elements may be updated by a single PV.
The ReadWriteSimPV, which is the SETI PV written to by HLA apps, now directly updates the pytac lattice, this is more logical than previously where it was a proxy which made the ReadSimPV update the pytac lattice. When the ReadWriteSimPV updates, it calls its own set function which both updates the lattice and then copies the new value to its linked ReadSimPV. Ideally this would be read back from the simulation but this has a time cost and currently would just return the same value.
The tunefb pvs used depends on the loaded ringmode, if a diamond2 ringmode is selected, eg 48, then a different set of quad tune families are used
If it does not exist, then instead of crashing, we now just continue without supplying any limits data to the PVs that we create
This must have been re-added by mistake during a rebase, it wasnt having any effect and is now cleaned up
This code looks more like that in tfb now and also works for both D1 and D2 PV names
In this mode, we dont lookup limits data from the live machine. Instead we use dummy data which is totally inaccurate, but is required by Virtac. We may want to make it more realistic in the future
These are more sensible, although still approximate
I modified the code to make it generic and added back in bends which are many_to_one for D1, but not for D2 Add exception for RF cavities, slightly change bends We have multiple RF cavities which all get their value from the master oscillator PV, we just create a single PV which writes to all of the RF cavities and reads from the first one. Currently this PV also writes to the harmonic RF cavity. This should actually have 3xMOSC, but it isnt simulated in at anyway, so this can be fixed later Remove bend magnets exception This is not relevant for D2
When emittance simulation is disabled.
2ef4464 to
74b19dc
Compare
| the HRF cavity should be about 3x the MOSC frequency, but the HRF isnt | ||
| simulated anyway, so it doesnt matter that we set the wrong value to it. | ||
| In the future it should either have its own PV, or we should add a way | ||
| to apply a scaling factor to the value we get/set. |
There was a problem hiding this comment.
The note in this section: I think the first two sentences are factual and the rest are more design decisions. Something that could be discussed in a meeting or recorded in the JIRA ticket for further work planning.
Additionally, this note removes the information from DI, which is still relevant and supported in this version of the code.
So I think perhaps a slimming of this comment and a merge with the DI description explaining the differences between the two would be good.
Uh oh!
There was an error while loading. Please reload this page.