Skip to content
Snippets Groups Projects
Commit a14a0f72 authored by Joseph Weston's avatar Joseph Weston
Browse files

explicitly set integer dtype for permutation matrix

This was always what was meant semantically; newer versions
of Scipy are stricter about what they accept for row/column
indices for COO matrices.

Closes #211.
parent b4c778d7
No related branches found
No related tags found
No related merge requests found
Pipeline #11288 passed with warnings
......@@ -306,8 +306,8 @@ def rotational_currents(g):
# per hopping).
A = np.zeros((g.num_nodes, g.num_edges // 2))
hoppings = dict()
perm_data = np.zeros(g.num_edges)
perm_ij = np.zeros((2, g.num_edges))
perm_data = np.zeros(g.num_edges, dtype=int)
perm_ij = np.zeros((2, g.num_edges), dtype=int)
i = 0
for k, (a, b) in enumerate(g):
hop = frozenset((a, b))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment