ctlab / GADMA

Genetic Algorithm for Demographic Model Analysis
Other
47 stars 14 forks source link

Custom Model Upper Lower Bounds Issue #7

Closed btmartin721 closed 4 years ago

btmartin721 commented 4 years ago

Hello,

I am having an issue using a custom model with dadi. I specified the custom model in a python file with the function name model_func(params, ns, pts).

When I try to run it, it gives me the following error:

Error: Lengths of lower and upper bounds should be equal.

However, as far as I can tell, the length of my upper and lower bounds are of equal lengths (both 8 parameters) in the parameters file:

Lower bounds : [0.01, 0.01, 0.01, 0.0, 0.0, 0.0, 0.0, 0.0]
Upper bounds : [10, 10, 10, 5.0, 5.0, 1.0, 10.0, 10.0]

I also tried using the parameter identifiers instead and it gives me a different error:

Parameter identifiers : ['n','n','n','t','t','s','m','m'] TypeError: object of type 'NoneType' has no len()

I have attached my custom model and parameters file in case you need to see them.

Could you please look into this issue?

By the way, thank you for making this software package. It greatly simplifies using dadi and moments for users, and its functionality is amazing.

Thanks,

-Bradley

params_test.txt Models_3D_gadma.zip

btmartin721 commented 4 years ago

Issue fixed with your latest push to GitHub. Thank you!