Skip to content
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

Merged
merged 4 commits into from
Feb 28, 2024
Merged

Update to use pvi 0.8 #181

merged 4 commits into from
Feb 28, 2024

Conversation

GDYendell
Copy link
Member

No description provided.

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.
@GDYendell GDYendell requested a review from gilesknap February 27, 2024 17:15
Copy link
Member

@gilesknap gilesknap left a 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.

Copy link
Member

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

Copy link
Member

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!

Comment on lines +129 to +132
key: self.render(
context, template if template is not None else "{{ %s }}" % key
)
for key, template in map.items()
Copy link
Member

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

Comment on lines +182 to +189
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)"')
Copy link
Member

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

@gilesknap gilesknap merged commit 5ddc256 into main Feb 28, 2024
12 checks passed
@gilesknap gilesknap deleted the pvi-0.8 branch June 18, 2024 06:35
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants