For the D deme, the population size remained at 4729 until 9491.2 generations ago, at which point a linear change took place until 2227.4 generations for size 358. Afterward, the population saw an exponential growth to 7704 by 1480.7. From 1480.7 generations ago to today, there's been a exponential change from 7704 to 3388.
time_units: generations
demes:
  - name: D
    start_time: .inf
    epochs:
      - start_size: 4729
        end_time: 9491.2
      - start_size: 4729
        end_size: 358
        end_time: 2227.4
        size_function: linear
      - start_size: 358
        end_time: 1480.7
        end_size: 7704
        size_function: exponential
      - end_time: 0
        start_size: 7704
        end_size: 3388
        size_function: exponential