Skip to content

Commit

Permalink
Replace use of toExpandedPipeline in dotTools
Browse files Browse the repository at this point in the history
This package will be deprecated shortly.
  • Loading branch information
timj committed Aug 9, 2024
1 parent d99ab1e commit aee760f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/lsst/ctrl/mpexec/dotTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,8 @@ def expand_dimensions(connection: connectionTypes.BaseConnection) -> list[str]:
allDatasets: set[str | tuple[str, str]] = set()
if isinstance(pipeline, Pipeline):
# TODO: DM-40639 will rewrite this code and finish off the deprecation
# of toExpandedPipeline.
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=FutureWarning)
pipeline = pipeline.toExpandedPipeline()
# of toExpandedPipeline but for now use the compatibility API.
pipeline = pipeline.to_graph()._iter_task_defs()

# The next two lines are a workaround until DM-29658 at which time metadata
# connections should start working with the above code
Expand Down

0 comments on commit aee760f

Please sign in to comment.