Skip to content

Commit 7f27bcd

Browse files
add type convertion for robustness
1 parent c3779f3 commit 7f27bcd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mccd/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ def poly_pos(
642642
"""
643643
n_mono = (max_degree + 1) * (max_degree + 2) // 2
644644
Pi = np.zeros((n_mono, pos.shape[0]))
645-
_pos = np.copy(pos)
645+
_pos = np.copy(pos).astype(float)
646646

647647
if x_lims is None:
648648
x_min = np.min(_pos[:, 0])

0 commit comments

Comments
 (0)