Skip to content

fixed input constraints#121

Open
JakeMikouchi wants to merge 1 commit intodevelfrom
intial_pop_fix
Open

fixed input constraints#121
JakeMikouchi wants to merge 1 commit intodevelfrom
intial_pop_fix

Conversation

@JakeMikouchi
Copy link
Copy Markdown
Collaborator

fixed issue with initial generation of equilibrium cycle cores. When generating a gene for a chromosome, MIDAS creates a list of the possible genes to use in that position (based on input constraints). It is possible for this list to be empty, but random.choice() is used to select the gene and this will return an error if the list is empty. MIDAS really should not return an error in the situation where the list is empty and should instead retry to create the chromosome from scratch. This was fixed in the patch.

A similar issue was happening with the initial generation of single cycle chromosomes which was fixed. Additionally, MIDAS would only attempt to generate of single cycle chromosome one time. This was changed so that MIDAS would continuously attempt to generate the chromosome until it had failed 10,000 times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant