Skip to content

Commit 20e723e

Browse files
authored
Merge pull request #44 from apache/numpy-fix
Use numpy's import_array1(0) to avoid return type weirdness
2 parents 36cee9b + 1cafe73 commit 20e723e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/density_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void bind_density_sketch(nb::module_ &m, const char* name) {
9898
}
9999

100100
int prepare_numpy() {
101-
import_array();
101+
import_array1(0);
102102
return 0;
103103
}
104104

0 commit comments

Comments
 (0)