Skip to content

Commit

Permalink
ensure moving restraint is reset when walkers are reset in incrementa…
Browse files Browse the repository at this point in the history
…l learning
  • Loading branch information
svandenhaute committed Nov 4, 2023
1 parent 1c21ed0 commit eb99609
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions psiflow/learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,9 @@ def update_walkers(self, walkers: list[BaseWalker], initialize=False):
assert "MOVINGRESTRAINT" in walker.bias.keys
_, kappas, centers = walker.bias.get_moving_restraint(self.cv_name)
steps = walker.steps
if initialize:
if initialize or walker.is_reset().result():
new_centers = (self.cv_start, self.cv_start + self.cv_delta)
else:
if walker.is_reset().result():
continue
new_centers = (
centers[1],
centers[1] + self.cv_delta,
Expand Down

0 comments on commit eb99609

Please sign in to comment.