Skip to content

Commit

Permalink
Call np.import_array(). (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
trexfeathers authored Oct 14, 2024
1 parent 0fbd2e8 commit 8fb0882
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mo_pack/_packing.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import numpy as np
cimport numpy as np

# Must be called to use the C-API with Numpy
np.import_array()

#: The WGDOS packing algorithm generally produces smaller data payloads
#: than the unpacked equivalent. However this is not a given, especially
Expand Down

0 comments on commit 8fb0882

Please sign in to comment.