Skip to content

Commit

Permalink
modified main paths
Browse files Browse the repository at this point in the history
  • Loading branch information
rsexton2 committed Feb 22, 2024
1 parent cc6427d commit 81666ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion basicrta/gibbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def run(self, run_resids=None):
self.ncomp, self.niter] for i in
range(len(residues))], dtype=object)

with Pool(self.nproc, initializer=tqdm.set_lock, initargs=(Lock(),)) as p:
with (Pool(self.nproc, initializer=tqdm.set_lock, initargs=(Lock(),)) as
p):
try:
for _ in tqdm(p.istarmap(run_residue, input_list),
total=len(residues), position=0,
Expand Down

0 comments on commit 81666ad

Please sign in to comment.