randlab / geone

DeeSse interface, utilities and examples
Other
37 stars 11 forks source link

module 'numpy' has no attribute 'deepcopy' #16

Closed LudovicSchorpp closed 6 months ago

LudovicSchorpp commented 6 months ago

Probably due to a deprecattion of numpy but when I try to use the estimateIndicator2D function when passing 1D covariance models, I get the following error message:

image

I have tried other numpy versions (1.24, 1.25, 1.26) but all returns the same error message. A simple solution consist in avoiding this line of code by already converting the covariance models in 2D but could be great to fix, probably that this error is not limited to this specific case. I suggest using copy.deepcopy in place of np.deepcopy.

config: windows 10 geone 1.2.6 numpy 1.26.4

julien-straubhaar commented 6 months ago

numpy.deepcopy has been changed to copy.deepcopy, this should fix the bug