When implementing selection against hybrids with cdevolveans, I run into two issues.
-
I get the error code "Check CDEvolve answer options." for entering Hindex_Para_1:0.5:0. Although this is indicated as a valid value for cdevolveans in the manual, there are a few validation steps in both CDmetaPOP_mainloop.py (line 175) and CDmetaPOP_Modules.py (lines 264 and 1270) where any value other than 'Hindex' does not pass the validation step because Hindex.split('_')[0] is not specified but rather Hindex as a whole. If I just input 'Hindex', the simulation passes those validation steps but runs into other issues later on when trying to implement the selection function.
-
In implementSelection, the separator ':' is meant to be used for multiple timing options, while the separator "_" is meant to be used to specify an age at which individuals are used in selection options. However, in line 381, the code attempts to split by the ':', which is supposed to be the separator for multiple timing options. If users attempt to input multiple time selection options (for example, Out:Back), the program interprets these as an age input and then returns: ValueError: invalid literal for int() with base 10: 'Back'.
When implementing selection against hybrids with cdevolveans, I run into two issues.
I get the error code "Check CDEvolve answer options." for entering Hindex_Para_1:0.5:0. Although this is indicated as a valid value for cdevolveans in the manual, there are a few validation steps in both CDmetaPOP_mainloop.py (line 175) and CDmetaPOP_Modules.py (lines 264 and 1270) where any value other than 'Hindex' does not pass the validation step because Hindex.split('_')[0] is not specified but rather Hindex as a whole. If I just input 'Hindex', the simulation passes those validation steps but runs into other issues later on when trying to implement the selection function.
In implementSelection, the separator ':' is meant to be used for multiple timing options, while the separator "_" is meant to be used to specify an age at which individuals are used in selection options. However, in line 381, the code attempts to split by the ':', which is supposed to be the separator for multiple timing options. If users attempt to input multiple time selection options (for example, Out:Back), the program interprets these as an age input and then returns: ValueError: invalid literal for int() with base 10: 'Back'.