dubourg / python-randomfields

A Python module that implements tools for the simulation and identification of random fields using the Karhunen-Loeve expansion representation.
19 stars 14 forks source link

TypeError #7

Open RunSfi opened 2 years ago

RunSfi commented 2 years ago

Hello, when I was running this code ‘1D_karhunen_loeve_simulation_example.py’, it reported the following error. I don't understand it. What do I need to do?

D:\anaconda3\lib\site-packages\openturns\func.py in init(self, args) 1112 1113 def init(self, args): -> 1114 _func.EnumerateFunction_swiginit(self, _func.new_EnumerateFunction(*args)) 1115 __swig_destroy__ = _func.delete_EnumerateFunction 1116

TypeError: Wrong number or type of arguments for overloaded function 'new_EnumerateFunction'. Possible C/C++ prototypes are: OT::EnumerateFunction::EnumerateFunction() OT::EnumerateFunction::EnumerateFunction(OT::EnumerateFunctionImplementation const &) OT::EnumerateFunction::EnumerateFunction(OT::EnumerateFunction::Implementation &) OT::EnumerateFunction::EnumerateFunction(OT::EnumerateFunction const &)

Liberil commented 2 years ago

I got the same error, have you solved it now?