File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
#
2
2
# MIT License
3
3
#
4
- # Copyright (c) 2020-2022 Tskit Developers
4
+ # Copyright (c) 2020-2023 Tskit Developers
5
5
#
6
6
# Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
# of this software and associated documentation files (the "Software"), to deal
27
27
import io
28
28
import itertools
29
29
import json
30
+ import math
30
31
import random
31
32
32
33
import msprime
@@ -1057,7 +1058,7 @@ def num_leaf_labelled_binary_trees(n):
1057
1058
1058
1059
https://oeis.org/A005373/
1059
1060
"""
1060
- return int (np . math .factorial (2 * n - 3 ) / (2 ** (n - 2 ) * np . math .factorial (n - 2 )))
1061
+ return int (math .factorial (2 * n - 3 ) / (2 ** (n - 2 ) * math .factorial (n - 2 )))
1061
1062
1062
1063
1063
1064
class TestPolytomySplitting :
Original file line number Diff line number Diff line change @@ -1603,13 +1603,13 @@ def test_bad_indexes(self, table):
1603
1603
table [[5.5 ]]
1604
1604
with pytest .raises (TypeError , match = "Cannot convert" ):
1605
1605
table [[None ]]
1606
- with pytest .raises (TypeError , match = "not supported between instances " ):
1606
+ with pytest .raises (TypeError , match = "not supported|did not contain " ):
1607
1607
table [["foobar" ]]
1608
1608
with pytest .raises (TypeError , match = "Index must be integer, slice or iterable" ):
1609
1609
table [5.5 ]
1610
1610
with pytest .raises (TypeError , match = "Cannot convert to a rectangular array" ):
1611
1611
table [None ]
1612
- with pytest .raises (TypeError , match = "not supported between instances " ):
1612
+ with pytest .raises (TypeError , match = "not supported|did not contain " ):
1613
1613
table ["foobar" ]
1614
1614
1615
1615
You can’t perform that action at this time.
0 commit comments