Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
wiederm committed May 28, 2023
1 parent ac672b2 commit 9fe9922
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions endstate_correction/smc.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def perform_SMC(

assert len(particles) == nr_of_particles
# start with SMC
for idx, lamb in enumerate(tqdm(t_values)):
for lamb in tqdm(t_values):
# set lambda parameter
sim.context.setParameter("lambda_interpolate", lamb)
# calculate the current potentials for each particle
Expand Down Expand Up @@ -80,11 +80,11 @@ def perform_SMC(

# Propagate the particles
_intermediate_particles = []
for p_idx, p in enumerate(particles):
for p in particles:
sim.context.setPositions(p)
sim.step(10)
_intermediate_particles.append(
sim.context.getState(getPositions=True).getPositions(asNumpy=True) / 10
sim.context.getState(getPositions=True).getPositions(asNumpy=True)
)

particles = _intermediate_particles
Expand Down

0 comments on commit 9fe9922

Please sign in to comment.