For the B deme, the population size remained at 4845 until 7823.1 generations ago, at which point a linear change took place until 7180.939 generations for size 6281. Afterward, the population saw an exponential change to 3640 by 6542.0. From 6542.0 generations ago to today, there's been a exponential reduction from 3640 to 3579.
time_units: generations
demes:
  - name: B
    start_time: .inf
    epochs:
      - start_size: 4845
        end_time: 7823.1
      - start_size: 4845
        end_size: 6281
        end_time: 7180.939
        size_function: linear
      - start_size: 6281
        end_time: 6542.0
        end_size: 3640
        size_function: exponential
      - end_time: 0
        start_size: 3640
        end_size: 3579
        size_function: exponential