We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Graph._demes_map
repr=False
We don't want to see the _demes_map dict in the __repr__ string.
__repr__
>>> import demes >>> g=demes.load("examples/two_epoch.yml") >>> from pprint import pprint >>> pprint(repr(g)) ("Graph(description='Single-population two-epoch demography.', " "time_units='generations', generation_time=None, doi=[], " "demes=[Deme(name='deme0', description='A deme that doubles in size 100 " "generations ago.', start_time=inf, ancestors=[], proportions=[], " 'epochs=[Epoch(start_time=inf, end_time=100, start_size=1000, end_size=1000, ' "size_function='constant', selfing_rate=0, cloning_rate=0), " 'Epoch(start_time=100, end_time=0, start_size=2000, end_size=2000, ' "size_function='constant', selfing_rate=0, cloning_rate=0)])], migrations=[], " "pulses=[], _deme_map={'deme0': Deme(name='deme0', description='A deme that " "doubles in size 100 generations ago.', start_time=inf, ancestors=[], " 'proportions=[], epochs=[Epoch(start_time=inf, end_time=100, start_size=1000, ' "end_size=1000, size_function='constant', selfing_rate=0, cloning_rate=0), " 'Epoch(start_time=100, end_time=0, start_size=2000, end_size=2000, ' "size_function='constant', selfing_rate=0, cloning_rate=0)])})")
The text was updated successfully, but these errors were encountered:
Output YAML for the Graph __repr__.
ab1ccff
Closes popsim-consortium#235. Closes popsim-consortium#291.
Output YAML for the Graph __str__.
3b12f32
Successfully merging a pull request may close this issue.
We don't want to see the _demes_map dict in the
__repr__
string.The text was updated successfully, but these errors were encountered: