popsim-consortium / analysis2

Analysis for the second consortium paper.
8 stars 14 forks source link

getting a warning about time units #86

Open andrewkern opened 1 year ago

andrewkern commented 1 year ago

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 commented 1 year ago

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