Skip to content

Commit

Permalink
MNT: cleanup, remove unused enumerate
Browse files Browse the repository at this point in the history
  • Loading branch information
elcorto committed Nov 12, 2023
1 parent 0cd0c69 commit c767f66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/psweep/psweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,7 @@ def stargrid(
def worker_wrapper(
pset: dict,
worker: Callable,
*,
tmpsave: bool = False,
verbose: Union[bool, Sequence[str]] = None,
simulate: bool = False,
Expand Down Expand Up @@ -1054,9 +1055,7 @@ def run(
)

if (poolsize is None) and (dask_client is None):
results = [
worker_wrapper_partial(pset=pset) for ii, pset in enumerate(params)
]
results = list(map(worker_wrapper_partial, params))
else:
assert [poolsize, dask_client].count(
None
Expand Down

0 comments on commit c767f66

Please sign in to comment.