Skip to content

Commit

Permalink
Maybe that's how closing works?
Browse files Browse the repository at this point in the history
  • Loading branch information
sk1p committed Oct 1, 2024
1 parent ec2dd1e commit 79226f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,9 @@ can use like this:

part_iter = ctx.run_udf_iter(dataset=aq, udf=SumUDF())

for part_result in contextlib.closing(part_iter):
sum_arr = part_result.buffers[0]['intensity']
with contextlib.closing(part_iter):
for part_result in part_iter:
sum_arr = part_result.buffers[0]['intensity']


:code:`part_result.buffers` is a list that has an entry for each UDF that is
Expand Down

0 comments on commit 79226f5

Please sign in to comment.