Closed btmartin721 closed 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()
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
Issue fixed with your latest push to GitHub. Thank you!
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:
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