Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Fix udef elem expconf #1667

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

reszelaz
Copy link
Collaborator

@reszelaz reszelaz commented Jul 23, 2021

This PR fixes expconf issues introduced by #1615 and reported by @yimli in #1615 (comment) - see 3d146b6
One idea to improve it would be to somehow mark the row corresponding to a disabled and undefined channel in the expconf e.g. red background. Does someone know how to do it?

This PR also fixes one more issue with restoring the memorized value of the measurement group's configuration attribute containing disabled but undefined channels - see 244b5f2.

@yimli it would be great if you could test if it fixes the issues you observed. Many thanks!

Since 6ac7aa6 measurement groups does not accept configurations with undefined channels - an exception is raised. This collides with restoring configuration memorized values when a channel was undefined
while still present, but disabled, in measurement groups configurations.
Raise the said exception only if the channel is enabled in the
measurement group.
sardana-org#1615 introduced bugs in expconf when a channel is undefined but still
present in the measurement groups configurations. Fix it by disabling all
cells of a disabled channels.
@reszelaz reszelaz added the bug label Jul 23, 2021
Since 6ac7aa6 measurement groups does not accept configurations with undefined channels - an exception is raised. This collides with restoring configuration memorized values when a channel was undefined
while still present, but disabled, in measurement groups configurations.
Raise the said exception only if the channel is enabled in the
measurement group.
Previously d9ecbc8 also tried to fix this issue but it introduced
a regression when disabling all channels in the measurement group.
@yimli
Copy link
Collaborator

yimli commented Aug 9, 2021

Thanks @reszelaz ! I have tested it and no key error anymore. But the undefined channel is still shown in the channel list. I agree with you it would be a good idea to mark the undefined channel, so that users would know it from expconf that this one has been undefined.

@reszelaz reszelaz added this to the Jul21 milestone Sep 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants