Skip to content

Commit

Permalink
Update migration matrix help text.
Browse files Browse the repository at this point in the history
Closes 1463
  • Loading branch information
jeromekelleher committed Mar 2, 2021
1 parent a153f35 commit 14845e0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions msprime/demography.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,11 +534,14 @@ def _populations_html(self):
def _migration_rate_info(self, source, dest, rate):
extra = None
if source != dest:
source_name = self.populations[source].name
dest_name = self.populations[dest].name
extra = (
"Backwards in time migration rate from population "
f"{self.populations[source].name} to {self.populations[dest].name} "
f"= {rate} per generation. "
"Equivalant to **IMPLEMENT ME** forwards in time"
f"{source_name} to {dest_name} = {rate} per generation. "
"Forwards in time, this is the expected number of migrants "
f"moving from {dest_name} to {source_name} "
f"per generation, divided by the size of {source_name}."
)
return core.TableEntry(f"{rate:.4g}", extra)

Expand Down

0 comments on commit 14845e0

Please sign in to comment.