-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update to use pvi 0.8 #181
Conversation
Make a Globals class for easier patching of paths for tests. Remove runtime generate path args and use patching in tests. Add verification of pvi template to motorSim test. Add directories for expected outputs of tests.
Following code assumes parsing succeeds and result has ioc_name, so check this to avoid obscure key errors. Any other issues will give a useful error when validation fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
All my comments were just compliments.
Ready to merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually like this sub-folder approach more - it is clearer what is going on as this file is really always called st.cmd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be the new pattern for global config!
key: self.render( | ||
context, template if template is not None else "{{ %s }}" % key | ||
) | ||
for key, template in map.items() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicer than my deleted attempt from render_db.py
pv: bool = Field( | ||
False, | ||
description=( | ||
"Whether to generate a PVI PV. This adds a database template with info " | ||
"tags that create a PVAccess PV representing the device structure." | ||
), | ||
) | ||
pv_prefix: str = Field("", description='PV prefix for PVI PV - e.g. "$(P)"') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is also much clearer than the old pva thing
No description provided.