Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Apr 22, 2024
1 parent a8e9f3a commit 775106c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/source/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,19 +397,19 @@ and two:
import flux.job
from pympipool import Executor

def add_numbers(parameter_a, parameter_b):
def calc_function(parameter_a, parameter_b):
return parameter_a + parameter_b

with flux.job.FluxExecutor() as flux_exe:
with Executor(max_cores=2, executor=flux_exe) as exe:
future_1 = exe.submit(
add_numbers,
calc_function,
1,
parameter_b=2,
resource_dict={"cores": 1},
)
future_2 = exe.submit(
add_numbers,
calc_function,
1,
parameter_b=future_1,
resource_dict={"cores": 1},
Expand Down
Loading

0 comments on commit 775106c

Please sign in to comment.