Reduce size of ADCore.ibek.support.yaml with anchors and aliases#133
Reduce size of ADCore.ibek.support.yaml with anchors and aliases#133
Conversation
gilesknap
left a comment
There was a problem hiding this comment.
Nice work. Looks good.
I'm going to trust ChatGPT has confirmed equivalence.
47a6e05 to
29baa56
Compare
|
We should consider adding these to the NDArrayBase parameters:
I think these are valid for all, but only a few use them We might also want a smaller subset to use for OverlayN, ROIStatN, AttributeN, NDTimeSeriesN that seem to all use
but not the driver specific things like NDARRAY_PORT and SCANRATE Also, some of the duplicated parameters actually set different defaults e.g. QUEUE on NDCircularBuff is 50 rather than 2 like everything else. What do we want to do about those? Thoughts @gilesknap ? |
If that top list is in NDArrayBase then it should be OK to add them into the anchor. But we do need to verify that the default values are the same for all uses. I see no reason not to make an anchor for the XXXN templates. |
Does that mean keeping the duplicated definitions with different defaults, or can we override just the default value somehow? |
When you do: <<: *my_alias
my_override: my_override_valueThe contents of |
|
Sure, but do you then have to duplicate the whole object like or can you just do something like ? |
|
if I understand your question then no you do not need to include values that you will always override. Its a straight merge of the dictionary you alias and the dictionary you are in. With the dictionary you are in having precedence. |
|
No that isn't what I was asking 😄
What I am asking is when using the alias do you have to redefine the entire key, or can you just redefine some part of it - e.g. just the default without duplicating the description |
|
Now I get you, so that depends on whether the whole hierarchy is merged or just the root keys. I'm going to say I think that the whole hierarchy is but I don't think I have tested that. |
Add XMLSIZE to NDArrayBase entities
Fixes #131