Skip to content

Unexpected warning in PanTro model #1734

@hyanwong

Description

@hyanwong

When e.g. drawing the PanTro BonoboGhost_4K19 model, e.g. via demesdraw.tubes(model.model.to_demes()) I get a couple of demes warnings. These could be worrying to a first-time user (I'm trying to use this in a tutorial example). Is it possible to restructure the model so as to keep an equivalent demographic structure but squash the warnings?

UserWarning: Multiple pulses are defined for the same deme(s) at time 6202.0. The ancestry proportions after this time will thus depend on the order in which the pulses have been specified. To avoid unexpected behaviour, the graph can instead be structured to introduce a new deme at this time with the desired ancestry proportions or to specify concurrent pulses with multiple sources.

python3.12/site-packages/demes/demes.py:1742](http://localhost:53397/Users/yan/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/demes/demes.py#line=1741):

UserWarning: Multiple pulses are defined for the same deme(s) at time 4003.0. The ancestry proportions after this time will thus depend on the order in which the pulses have been specified. To avoid unexpected behaviour, the graph can instead be structured to introduce a new deme at this time with the desired ancestry proportions or to specify concurrent pulses with multiple sources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions