Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: only let channels which have a name into read/config list #509

Merged
merged 1 commit into from
Feb 20, 2018

Conversation

tacaswell
Copy link
Contributor

No description provided.

active_channels.append(ch_name)

self.channels.read_attrs = list(active_channels)
self.channels.configuration_attrs = list(active_channels)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is list needed in this case? It's already defined as list above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, if you just assigned then self.channels.read_attrs is self.channels.configuration_attrs would be True and appending or popping from one list would affect the other. That may actually be sensible in this case, but would be very surprising.

@codecov-io
Copy link

Codecov Report

Merging #509 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #509      +/-   ##
==========================================
+ Coverage   89.42%   89.44%   +0.02%     
==========================================
  Files          51       51              
  Lines        7016     7049      +33     
==========================================
+ Hits         6274     6305      +31     
- Misses        742      744       +2
Impacted Files Coverage Δ
ophyd/tests/test_signal.py 98.26% <0%> (-0.35%) ⬇️
ophyd/status.py 92.27% <0%> (+0.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3fe913f...fb3ff00. Read the comment docs.

@danielballan danielballan merged commit b2a939d into bluesky:master Feb 20, 2018
@tacaswell tacaswell deleted the mnt_filter_scalar_channels branch February 26, 2018 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants