Skip to content

Commit

Permalink
Fix seed calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Feb 15, 2024
1 parent b63e7ff commit 5e8320b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hoomd_validation/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

"""Helper functions for grabbing data and plotting."""

import copy
import os

import h5py
Expand Down Expand Up @@ -163,8 +162,8 @@ def make_seed(job, sim_mode=None):
Mix in the simulation mode to ensure that separate simulations in the same
state point run with different seeds.
"""
# copy the job.cached_statepoint['and'] mix in the simulation mode
statepoint = copy.deepcopy(job.cached_statepoint)
# copy the job statepoint and mix in the simulation mode
statepoint = job.cached_statepoint.copy()
statepoint['sim_mode'] = sim_mode

return int(signac.job.calc_id(statepoint), 16) & 0xFFFF
Expand Down

0 comments on commit 5e8320b

Please sign in to comment.