Skip to content

Commit c2b4cfa

Browse files
committed
small changes to facilitate debugging
1 parent 0ee95f2 commit c2b4cfa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/pyff/pipes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ def __init__(self, entry_point, req, store=None):
146146
self.req = req
147147
self.store = store
148148

149+
def __str__(self) -> str:
150+
return f"<PipelineCallback to {self.req.plumbing}]>"
151+
149152
def __copy__(self):
150153
return self
151154

src/pyff/test/test_pipeline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def exec_pipeline(self, pstr):
6969
md = MDRepository()
7070
p = yaml.safe_load(six.StringIO(pstr))
7171
print("\n{}".format(yaml.dump(p)))
72-
res = Plumbing(p, pid="test").process(md, state={'batch': True, 'stats': {}})
72+
pl = Plumbing(p, pid="test")
73+
res = pl.process(md, state={'batch': True, 'stats': {}})
7374
return res, md
7475

7576
@classmethod

0 commit comments

Comments
 (0)