Skip to content

Commit

Permalink
monkey patch missing numpy.object
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodlz committed Oct 9, 2024
1 parent 3a8f584 commit 6862c8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kowalski/tools/istarmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# See https://stackoverflow.com/questions/57354700/starmap-combined-with-tqdm
import multiprocessing.pool as mpp
import sys
import numpy as np

# for numpy>=1.24.0, monkey patch numpy.object
np.object = object

if sys.version_info.minor > 7:

Expand Down

0 comments on commit 6862c8a

Please sign in to comment.