Skip to content
Snippets Groups Projects
Commit e9427441 authored by Johanna Zijderveld's avatar Johanna Zijderveld
Browse files

ensure that reshaping array is of correct type

parent 12febd75
Branches
Tags
1 merge request!4Interface refactoring
......@@ -35,7 +35,7 @@ def tb_to_khamvector(tb, nk, ks=None):
(...,) + (np.newaxis,) * 2
]
tb_array = tb_array.reshape(
np.concatenate(([num_keys], [1] * ndim, tb_array.shape[1:]))
np.concatenate(([num_keys], [1] * ndim, tb_array.shape[1:])).astype(int)
)
return np.sum(tb_array * k_dependency, axis=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment