Skip to content

Commit

Permalink
Merge pull request #222 from lsst/tickets/DM-38081
Browse files Browse the repository at this point in the history
DM-38081: Fix for coverage option passed to run_qbb
  • Loading branch information
andy-slac committed Feb 21, 2023
2 parents b50b1b1 + 87d485a commit 1d38f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/ctrl/mpexec/cli/cmd/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ def qgraph(ctx: click.Context, **kwargs: Any) -> None:
"""Build and optionally save quantum graph."""
kwargs = _collectActions(ctx, **kwargs)
coverage = kwargs.pop("coverage", False)
coverage_packages = kwargs.pop("cov_packages", ())
if coverage:
coverage_packages = kwargs.pop("cov_packages", ())
cov = _start_coverage(coverage_packages)

try:
Expand Down Expand Up @@ -308,8 +308,8 @@ def run_qbb(repo: str, qgraph: str, **kwargs: Any) -> None:
QGRAPH is the path to a serialized Quantum Graph file.
"""
coverage = kwargs.pop("coverage", False)
coverage_packages = kwargs.pop("cov_packages", ())
if coverage:
coverage_packages = kwargs.pop("cov_packages", ())
cov = _start_coverage(coverage_packages)

try:
Expand Down

0 comments on commit 1d38f3a

Please sign in to comment.