Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 8, 2024
1 parent fbb57e2 commit 2354dee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
12 changes: 5 additions & 7 deletions hoomd_validation/lj_fluid.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def make_mc_simulation(job, device, initial_state, sim_mode, extra_loggables=Non
mc.shape['A'] = dict(diameter=0.0)

# pair potential
epsilon = LJ_PARAMS['epsilon'] # noqa F841
epsilon = LJ_PARAMS['epsilon'] # noqa F841
sigma = LJ_PARAMS['sigma']
r_on = job.cached_statepoint['r_on']
r_cut = job.cached_statepoint['r_cut']
Expand Down Expand Up @@ -861,9 +861,9 @@ def analyze(*jobs):
'hoomd-data/md/compute/ThermodynamicQuantities/potential_energy'
]
else:
energies[sim_mode] = (
log_traj['hoomd-data/hpmc/pair/LennardJones/energy']
)
energies[sim_mode] = log_traj[
'hoomd-data/hpmc/pair/LennardJones/energy'
]

energies[sim_mode] /= job.cached_statepoint['num_particles']

Expand Down Expand Up @@ -1185,9 +1185,7 @@ def distribution_analyze(*jobs):
)
else:
potential_energy_samples[sim_mode].extend(
list(
log_traj['hoomd-data/hpmc/pair/LennardJones/energy']
)
list(log_traj['hoomd-data/hpmc/pair/LennardJones/energy'])
)

if 'md' in sim_mode:
Expand Down
4 changes: 1 addition & 3 deletions hoomd_validation/lj_union.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,9 +905,7 @@ def analyze(*jobs):
'hoomd-data/md/compute/ThermodynamicQuantities/potential_energy'
]
else:
energies[sim_mode] = (
log_traj['hoomd-data/hpmc/pair/Union/energy']
)
energies[sim_mode] = log_traj['hoomd-data/hpmc/pair/Union/energy']

energies[sim_mode] /= job.cached_statepoint['num_particles']

Expand Down
3 changes: 2 additions & 1 deletion hoomd_validation/patchy_particle_pressure.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ def run_npt_sim(job, device):

# box updates
boxmc = hoomd.hpmc.update.BoxMC(
P=job.cached_statepoint['pressure']*job.cached_statepoint["temperature"], trigger=hoomd.trigger.Periodic(1)
P=job.cached_statepoint['pressure'] * job.cached_statepoint['temperature'],
trigger=hoomd.trigger.Periodic(1),
)
boxmc.volume = dict(weight=1.0, mode='ln', delta=1e-6)

Expand Down

0 comments on commit 2354dee

Please sign in to comment.