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

getting a warning about time units #86

Open
andrewkern opened this issue Jan 24, 2023 · 1 comment
Open

getting a warning about time units #86

andrewkern opened this issue Jan 24, 2023 · 1 comment

Comments

@andrewkern
Copy link
Member

currently the sweep workflow is throwing a warning about time units that looks like this

/home/adkern/miniconda3/envs/analysis2/lib/python3.10/site-packages/msprime/ancestry.py:831:
TimeUnitsMismatchWarning: The initial_state has time_units=ticks but time is measured in generations in msprime. 
This may lead to significant discrepancies between the timescales. If you wish to suppress this warning, 
you can use, e.g., warnings.simplefilter('ignore', msprime.TimeUnitsMismatchWarning)
 warnings.warn(message, TimeUnitsMismatchWarning)

I wonder if we want to suppress this warning?

@petrelharp
Copy link
Contributor

If you are using a WF model, then yes, just suppress it.

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

No branches or pull requests

2 participants