- Note that the visualization portion of this project is taken from Adrien Verge's familytreemaker repo (https://github.com/adrienverge/familytreemaker). Many thanks.
- Clone the repo
- In the
srcdirectory modify theinput.yamlfile with chosen attributes for a starting couple, which is formatted below.
num_years: <duration of the simulation>
start_year: <starting year for the simulation>
father: [<first name>, <last name>, <age at start_year>, <birth date>]
mother: [<first name>, <last name>, <age at start_year>, <birth date>]
- In the
srcdirectory, run the commandpython3 runner.py. This creates a .txt file representation of the family tree (family_tree.txt), as well as a (family_tree.png) file image of the family tree. The tree looks like:
and the text representation looks like:
Martha Stewart (id=0, F, birthday=1857, deathday=1892)
Snoop Dogg (id=1, M, birthday=1857, deathday=1891)
Morris Dogg (id=2, M, birthday=1881, deathday=1929)
Lily Dogg (id=3, F, birthday=1885, deathday=1947)
Lily Dogg (id=3, F, birthday=1885, deathday=1947)
Vincent Reed (id=5, M, birthday=1888, deathday=1937)
Evelyn Reed (id=7, F, birthday=1921)
Ivy Bennett (id=4, F, birthday=1881, deathday=1917)
Morris Dogg (id=2, M, birthday=1881, deathday=1929)
Richard Dogg (id=6, M, birthday=1915)
Evelyn Reed (id=7, F, birthday=1921)
Martyn Young (id=10, M, birthday=1930)
Kevin Young (id=11, M, birthday=1960)
Christina Bates (id=8, F, birthday=1906)
Richard Dogg (id=6, M, birthday=1915)
Christopher Dogg (id=9, M, birthday=1942)
Each married couple is represented as a pair, with their children indented below.
