Skip to content

Commit 294dd89

Browse files
hyanwongpetrelharp
andauthored
Update python/tskit/tables.py
Co-authored-by: Peter Ralph <petrel.harp@gmail.com>
1 parent 6944250 commit 294dd89

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python/tskit/tables.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4263,7 +4263,8 @@ def merge(
42634263
i >= self.populations.num_rows
42644264
or self.populations[i] != other.populations[i]
42654265
):
4266-
raise ValueError("Non-matching populations")
4266+
raise ValueError(f"Non-matching populations:\n self: {self.populations[i]}"
4267+
f"\n self: {other.populations[i]}")
42674268
individual_map = {}
42684269
population_map = {}
42694270
for new_node in np.where(node_map == tskit.NULL)[0]:

0 commit comments

Comments
 (0)