DeprecationWarning
Opened this issue · 2 comments
Running the example code for fathon.HT I get this numpy warning:
DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
Hi @riccstef, which version of fathon and which OS are you using?
Could you also give me a minimal sample code to reproduce the warning?
Hi @stfbnc, fathon 1.3.3.post1 running on Windows 10 x64.
I get this error running any on the sample codes provided, for example running
import numpy as np
import fathon
from fathon import fathonUtils as fu
a = np.random.randn(10000)
b = np.random.randn(10000)
a = fu.toAggregated(a)
b = fu.toAggregated(b)
pyht = fathon.HT(a)
scales = [100, 200, 1000]
mfdfaPolOrd = 1
polOrd = 1
ht = pyht.computeHt(scales, mfdfaPolOrd=mfdfaPolOrd, polOrd=polOrd)
I get
DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before
performing this operation. (Deprecated NumPy 1.25.)
ht = pyht.computeHt(scales, mfdfaPolOrd=mfdfaPolOrd, polOrd=polOrd)
Thanks for the help