Skip to content

Commit

Permalink
Use Pipeline URI methods
Browse files Browse the repository at this point in the history
  • Loading branch information
natelust committed Feb 4, 2021
1 parent aa77eba commit fafa49c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/ctrl/mpexec/cmdLineFwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def makePipeline(self, args):
pipeline : `~lsst.pipe.base.Pipeline`
"""
if args.pipeline:
pipeline = Pipeline.fromFile(args.pipeline)
pipeline = Pipeline.from_uri(args.pipeline)
else:
pipeline = Pipeline("anonymous")

Expand Down Expand Up @@ -494,7 +494,7 @@ def makePipeline(self, args):
raise ValueError(f"Unexpected pipeline action: {action.action}")

if args.save_pipeline:
pipeline.toFile(args.save_pipeline)
pipeline.write_to_uri(args.save_pipeline)

if args.pipeline_dot:
pipeline2dot(pipeline, args.pipeline_dot)
Expand Down

0 comments on commit fafa49c

Please sign in to comment.