Skip to content

Commit

Permalink
Merge pull request #4557 from jtkrogel/nx_deterministic_equil
Browse files Browse the repository at this point in the history
Nexus: use data hashing in heuristic equilibration detection algorithm
  • Loading branch information
markdewing committed Apr 26, 2023
2 parents 59bcf0e + 7dc9a02 commit 421d1b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nexus/lib/numerics.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,10 @@ def simplestats(x,dim=None,full=False):
#end def simplestats


def equilibration_length(x,tail=.5,plot=False,xlim=None,bounces=2,random=True):
def equilibration_length(x,tail=.5,plot=False,xlim=None,bounces=2,random=True,seed_from_hash=True):
if seed_from_hash:
np.random.seed(hash(tuple(x))%(2**32))
#end if
bounces = max(1,bounces)
eqlen = 0
nx = len(x)
Expand Down

0 comments on commit 421d1b5

Please sign in to comment.