CSS pv() function missing in Phoebus
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
The issue describes a missing pv() expression function and gives a nested expression example, but names no implementation files or tests. First check how Phoebus currently parses backtick expressions and whether they support nested evaluation; then assess the scope of adding pv() as an alternative. Done would mean the example can resolve the computed PV name and retrieve its value, with tests covering that behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Many of the functions available in CS-Studio are also available in Phoebus, however I have noticed that one that we make heavy use of is missing and that is the pv() function. This basically turns whatever is inside it into a PV object that CSS then gets the value of.
In many instances we can just replace that with the Phoebus syntax using backticks ``.
However there are some cases that do not work in Phoebus, for example, functions within the backticks or nested backticks. An example of what was done in CSS is shown below:
=pv(concat(pv("XXX:NAME:OF:PV"), ":HELLO"))
where:
-
pv("XXX:NAME:OF:PV")would return the value of this PV, which is a string with the name of another PV, e.g. XXX:NAME:OF:PV.val = "TEST:VAC:01" -
concat(..., ":HELLO")takes the string PV value from above and appends "HELLO" to it to get a new PV name, e.g. "TEST:VAC:01:HELLO" -
then
=pv(...)gets the value of "TEST:VAC:01:HELLO"
As far as I can tell, there is no easy way of doing this in Phoebus except using scripts.
I was just wondering whether there was a reason that the pv() function from CSS wasn't re-implemented in Phoebus? Would it be beneficial to have it?
- Lingua principale
- Java
- Stelle
- 130
- Fork
- 132
- Merge medio
- 3g 1h
- PR unite (30g)
- 24
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ControlSystemStudio/phoebus
-
Create CONTRIBUTING.mdAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ControlSystemStudio/phoebus#3979 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
ControlSystemStudio/phoebus#3962 ·
I maintainer di solito rispondono entro 2 giorni
-
PVA/SPVA: track SPVA version independently and move XDG keychain dir pva/<ver> -> spva/<n.n.n>Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
ControlSystemStudio/phoebus#3865 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 52/100
ControlSystemStudio/phoebus#3980 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
ControlSystemStudio/phoebus#3978 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di ControlSystemStudio/phoebus
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
adorsys/keycloak-config-cli#1709 ·
I maintainer di solito rispondono entro 1 giorno
-
! and-bugs
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
osmandapp/OsmAnd#26769 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
NationalSecurityAgency/ghidra#9997 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
[Bug] DefaultSerializationExceptionWrapper does not implement Cleanable, so cleanup() is never invoked by codecsForse già presa @binbin0325 l’ha presa oggi. Apertacomponent/need-triage type/need-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
fix: tagged PDF fails with ClassCastException when a Form and its Image share an XObject nameForse già presa @hnc-jglee l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
opendataloader-project/opendataloader-pdf#830 ·
I maintainer di solito rispondono entro 1 giorno