Skip to content

Commit

Permalink
Fix support for python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
janbridley committed Oct 30, 2024
1 parent 811b1fa commit f975d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coxeter/shapes/polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ def to_hoomd(self):
self.centroid = np.array([0, 0, 0])
data = self.to_json(["vertices", "centroid", "area", "inertia_tensor"])
hoomd_dict = _map_dict_keys(data, key_mapping=_hoomd_dict_mapping)
hoomd_dict |= {"vertices": self.vertices[:, :2]}
hoomd_dict = {**hoomd_dict, **{"vertices": self.vertices[:, :2]}}
hoomd_dict["sweep_radius"] = 0.0

self.centroid = old_centroid
Expand Down

0 comments on commit f975d00

Please sign in to comment.