Skip to content

Commit

Permalink
test for fill box kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Jan 30, 2025
1 parent a2514f1 commit 1c0d5ea
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions flowermd/tests/base/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,21 @@ def test_pack_seed(self, benzene_molecule):
# adding test for kwargs argument in system.py Pack class
def test_pack_kwargs_attr(self, polyethylene):
polyethylene = polyethylene(lengths=5, num_mols=1)
Pack(
system1 = Pack(
molecules=[polyethylene],
density=1.0,
overlap=0.2,
seed=12345,
sidemax=100.0,
fix_orientation=True,
)
system2 = Pack(
molecules=[polyethylene],
density=1.0,
overlap=0.2,
seed=12345,
fix_orientation=False,
)
assert not np.array_equal(system1.system.xyz, system2.system.xyz)

def test_mass(self, pps_molecule):
pps_mol = pps_molecule(n_mols=20)
Expand Down

0 comments on commit 1c0d5ea

Please sign in to comment.