Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
khsrali committed Dec 10, 2024
1 parent 7121594 commit c5336be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/process_helloworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def define(cls, spec):
spec.input('name', default='World', required=True)
spec.output('greeting', valid_type=str)

async def run(self):
def run(self):
self.out('greeting', f'Hello {self.inputs.name}!')
return plumpy.Stop(None, True)

Expand Down
2 changes: 1 addition & 1 deletion examples/process_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def define(cls, spec):
spec.outputs.dynamic = True
spec.output('default', valid_type=int)

async def run(self):
def run(self):
self.out('default', 5)


Expand Down
10 changes: 5 additions & 5 deletions tests/test_workchains.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def define(cls, spec):
super().define(spec)
spec.output('res')

async def run(self):
def run(self):
self.out('res', A)

class ReturnB(plumpy.Process):
Expand All @@ -214,7 +214,7 @@ def define(cls, spec):
super().define(spec)
spec.output('res')

async def run(self):
def run(self):
self.out('res', B)

class Wf(WorkChain):
Expand Down Expand Up @@ -394,7 +394,7 @@ def define(cls, spec):
spec.outline(cls.run, cls.check)
spec.outputs.dynamic = True

async def run(self):
def run(self):
return ToContext(subwc=self.launch(SubWorkChain))

def check(self):
Expand All @@ -406,7 +406,7 @@ def define(cls, spec):
super().define(spec)
spec.outline(cls.run)

async def run(self):
def run(self):
self.out('value', 5)

workchain = MainWorkChain()
Expand Down Expand Up @@ -449,7 +449,7 @@ def define(cls, spec):
super().define(spec)
spec.output('_return')

async def run(self):
def run(self):
self.out('_return', val)

class Workchain(WorkChain):
Expand Down

0 comments on commit c5336be

Please sign in to comment.