Skip to content

Commit

Permalink
Merge pull request #102 from tangkong/active_devices_only
Browse files Browse the repository at this point in the history
BUG: only list active devices on launch
  • Loading branch information
ZLLentz authored Mar 25, 2022
2 parents 5d2d7cd + 0c108ac commit 21ecbca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ env:
jobs:
allow_failures:
# ** pyqtads is not available on PyPI, so this cannot succeed:
- name: "Python 3.8 - PIP"
- name: "Python 3.9"
- name: "Python - PIP"

import:
- pcdshub/pcds-ci-helpers:travis/shared_configs/setup-env-ui.yml
Expand Down
4 changes: 3 additions & 1 deletion lucid/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def __init__(self, *args, beamline, group_keys, callbacks, **kwargs):
def _load_from_happi(self, row_group_key, col_group_key):
'''Fill with Data from Happi'''
cli = lucid.utils.get_happi_client()
results = cli.search(beamline=self.beamline) or []
results = (cli.search(beamline=self.beamline,
active=True)
or [])

dev_groups = collections.defaultdict(list)

Expand Down

0 comments on commit 21ecbca

Please sign in to comment.