MultiNEAT icon indicating copy to clipboard operation
MultiNEAT copied to clipboard

Python freezes when calling Paramenters.Load

Open hukasu opened this issue 10 years ago • 2 comments

Whenever I try to load Parameters from a file, my program simply freezes, both when calling directly or when calling through the constructor of Population, I modified the source code to have prints on several locations and it does only freeze when calling Parameter.Load. It also happens with both the Load with a ifstream and a char*.

On OS X El Capitan with Python 2.7.10

hukasu avatar Oct 21 '15 01:10 hukasu

I have the same issue but running with python 3.5.1 on Windows.

j0hnfer avatar Jul 13 '16 15:07 j0hnfer

Does this happen if you save and then load a new Parameter instance? I have had this problem with malformed files (wrong/missing values). Set parameter values manually (on your code) then save the instance and Load it to see if that works, like:

params = NEAT.Parameters()
params.MaxWeight = 20
params.Save('./params.txt')
params = NEAT.Parameters()
params.Load('./params.txt')

jr-garcia avatar Jul 31 '16 13:07 jr-garcia