Skip to content

Commit

Permalink
fix bug in box check
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrunewald committed Oct 19, 2023
1 parent cf2f3a7 commit de9ec20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polyply/src/gen_coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def gen_coords(toppath,
grid = np.loadtxt(grid)

# where to get the box size from
if box is not None and not np.array_equal(topology.box, box):
if box is not None and topology.box and not np.array_equal(topology.box, box):
msg = ("A box is provided via the -box command line "
"and the starting coordinates. We consider the "
"the box of starting coordinates as correct. ")
Expand Down

0 comments on commit de9ec20

Please sign in to comment.