File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 33import copy
44from datetime import date
55from inspect import stack as INSPECTstack
6+ from packaging .version import Version
67import ntpath
8+ import numpy
79from numpy import array as NParray
810from numpy import exp as NPexp
911from numpy import histogram as NPhistogram
1012from numpy import isnan as NPisnan
1113from numpy import nan as NPnan
1214from numpy import nonzero as NPnonzero
1315from numpy import ones as NPones
14- from numpy import product as NPproduct
16+
17+ if Version (numpy .__version__ ) < Version ('1.25.0' ):
18+ from numpy import product as NPproduct
19+ else :
20+ from numpy import prod as NPproduct
21+
1522from numpy import where as NPwhere
1623from numpy .ma .core import MaskedArray as NPma__core__MaskedArray
1724from os .path import isdir as OSpath_isdir
You can’t perform that action at this time.
0 commit comments