Skip to content

Modes not working properly in BondOrder #1201

Description

@Charlottez112

Description

When I used modeslbod and oocd, I got the same result as mode bod, and got a 0 array when I used obcd. @Tobias-Dwyer also reported the same problem.

Steps to Reproduce

n_bins_theta = 100
n_bins_phi = 100
bod = freud.environment.BondOrder((n_bins_theta, n_bins_phi), mode='bod')

bod_array = bod.compute(
    system=traj[-1], neighbors={"num_neighbors": 12}
).bond_order

bod_array = np.clip(bod_array, 0, np.percentile(bod_array, 99))
plt.imshow(bod_array.T)
plt.show()

Error Output

Expect to see different BOD patterns when different modes are used.

freud Version

v2.13.2

Python Version

v3.10.13

System Platform

Linux

Installation method

Download from conda-forge

Developer

Would someone else please fix this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions