Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routines to generate tree sequences deterministically rather than stochastically for testing #2430

Open
szhan opened this issue Jul 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@szhan
Copy link
Member

szhan commented Jul 22, 2022

In #2384 , I added a test to check that the string representation of a Variant object is correctly formatted. The test involves doing regexp matching (using a predefined pattern) on the output of calling __str__() on a Variant object. The output string shows the alleles in the Variant object. The problem is that the TreeSequence object from which the Variant object is taken is generated stochastically, so the allele list of the Variant object may vary from computer to computer.

As @hyanwong suggested (#2384 (comment)), it may be helpful to have some routines to generate TreeSequence objects deterministically for testing purposes.

@szhan szhan added the enhancement New feature or request label Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant