I discovered this bug while adjusting the wheel tests performed by cibuiltwheel (previously weren't run on built wheels)
================================== FAILURES ===================================
___________________________ test_systematics[taxa0] ___________________________
taxa = ['hello', 'hello 2']
@mark.parametrize(
"taxa",
(
["hello", "hello 2"],
[1, 2],
[1.0, 2.0],
[[1], [1, 2]],
[np.array([1]), np.array([1, 2])],
),
)
def test_systematics(taxa):
tax1, tax2 = taxa
sys = systematics.Systematics(taxon_info_fun, True, True, False, False)
org = ExampleOrg(tax1)
org2 = ExampleOrg(tax2)
org_tax = systematics.Taxon(0, tax1)
> org2_tax = sys.add_org(org2, org_tax)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:65: RuntimeError
___________________________ test_systematics[taxa1] ___________________________
taxa = [1, 2]
@mark.parametrize(
"taxa",
(
["hello", "hello 2"],
[1, 2],
[1.0, 2.0],
[[1], [1, 2]],
[np.array([1]), np.array([1, 2])],
),
)
def test_systematics(taxa):
tax1, tax2 = taxa
sys = systematics.Systematics(taxon_info_fun, True, True, False, False)
org = ExampleOrg(tax1)
org2 = ExampleOrg(tax2)
org_tax = systematics.Taxon(0, tax1)
> org2_tax = sys.add_org(org2, org_tax)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:65: RuntimeError
___________________________ test_systematics[taxa2] ___________________________
taxa = [1.0, 2.0]
@mark.parametrize(
"taxa",
(
["hello", "hello 2"],
[1, 2],
[1.0, 2.0],
[[1], [1, 2]],
[np.array([1]), np.array([1, 2])],
),
)
def test_systematics(taxa):
tax1, tax2 = taxa
sys = systematics.Systematics(taxon_info_fun, True, True, False, False)
org = ExampleOrg(tax1)
org2 = ExampleOrg(tax2)
org_tax = systematics.Taxon(0, tax1)
> org2_tax = sys.add_org(org2, org_tax)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:65: RuntimeError
___________________________ test_systematics[taxa3] ___________________________
taxa = [[1], [1, 2]]
@mark.parametrize(
"taxa",
(
["hello", "hello 2"],
[1, 2],
[1.0, 2.0],
[[1], [1, 2]],
[np.array([1]), np.array([1, 2])],
),
)
def test_systematics(taxa):
tax1, tax2 = taxa
sys = systematics.Systematics(taxon_info_fun, True, True, False, False)
org = ExampleOrg(tax1)
org2 = ExampleOrg(tax2)
org_tax = systematics.Taxon(0, tax1)
> org2_tax = sys.add_org(org2, org_tax)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:65: RuntimeError
___________________________ test_systematics[taxa4] ___________________________
taxa = [array([1]), array([1, 2])]
@mark.parametrize(
"taxa",
(
["hello", "hello 2"],
[1, 2],
[1.0, 2.0],
[[1], [1, 2]],
[np.array([1]), np.array([1, 2])],
),
)
def test_systematics(taxa):
tax1, tax2 = taxa
sys = systematics.Systematics(taxon_info_fun, True, True, False, False)
org = ExampleOrg(tax1)
org2 = ExampleOrg(tax2)
org_tax = systematics.Taxon(0, tax1)
> org2_tax = sys.add_org(org2, org_tax)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:65: RuntimeError
_______________________ test_taxa_serialization[taxa0] ________________________
taxa = ['hello', 'hello 2']
@mark.parametrize(
"taxa",
(
["hello", "hello 2"],
[1, 2],
[1.0, 2.0],
[[1], [1, 2]],
[np.array([1]), np.array([1, 2])],
),
)
def test_taxa_serialization(taxa):
tax1, tax2 = taxa
sys = systematics.Systematics(taxon_info_fun, True, True, False, False)
org = ExampleOrg(tax1)
org2 = ExampleOrg(tax2)
> org_tax = sys.add_org(org)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:99: RuntimeError
_______________________ test_taxa_serialization[taxa1] ________________________
taxa = [1, 2]
@mark.parametrize(
"taxa",
(
["hello", "hello 2"],
[1, 2],
[1.0, 2.0],
[[1], [1, 2]],
[np.array([1]), np.array([1, 2])],
),
)
def test_taxa_serialization(taxa):
tax1, tax2 = taxa
sys = systematics.Systematics(taxon_info_fun, True, True, False, False)
org = ExampleOrg(tax1)
org2 = ExampleOrg(tax2)
> org_tax = sys.add_org(org)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:99: RuntimeError
_______________________ test_taxa_serialization[taxa2] ________________________
taxa = [1.0, 2.0]
@mark.parametrize(
"taxa",
(
["hello", "hello 2"],
[1, 2],
[1.0, 2.0],
[[1], [1, 2]],
[np.array([1]), np.array([1, 2])],
),
)
def test_taxa_serialization(taxa):
tax1, tax2 = taxa
sys = systematics.Systematics(taxon_info_fun, True, True, False, False)
org = ExampleOrg(tax1)
org2 = ExampleOrg(tax2)
> org_tax = sys.add_org(org)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:99: RuntimeError
_______________________ test_taxa_serialization[taxa3] ________________________
taxa = [[1], [1, 2]]
@mark.parametrize(
"taxa",
(
["hello", "hello 2"],
[1, 2],
[1.0, 2.0],
[[1], [1, 2]],
[np.array([1]), np.array([1, 2])],
),
)
def test_taxa_serialization(taxa):
tax1, tax2 = taxa
sys = systematics.Systematics(taxon_info_fun, True, True, False, False)
org = ExampleOrg(tax1)
org2 = ExampleOrg(tax2)
> org_tax = sys.add_org(org)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:99: RuntimeError
_______________________ test_taxa_serialization[taxa4] ________________________
taxa = [array([1]), array([1, 2])]
@mark.parametrize(
"taxa",
(
["hello", "hello 2"],
[1, 2],
[1.0, 2.0],
[[1], [1, 2]],
[np.array([1]), np.array([1, 2])],
),
)
def test_taxa_serialization(taxa):
tax1, tax2 = taxa
sys = systematics.Systematics(taxon_info_fun, True, True, False, False)
org = ExampleOrg(tax1)
org2 = ExampleOrg(tax2)
> org_tax = sys.add_org(org)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:99: RuntimeError
____________________________ test_shared_ancestor _____________________________
def test_shared_ancestor():
sys = systematics.Systematics(taxon_info_fun, True, True, False, False)
org1 = ExampleOrg("hello")
org2 = ExampleOrg("hello 2")
org3 = ExampleOrg("hello 3")
org4 = ExampleOrg("hello 4")
> org1_tax = sys.add_org(org1)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:123: RuntimeError
____________________________ test_phylostatistics _____________________________
def test_phylostatistics():
sys = systematics.Systematics(str, True, True, False, False)
sys.set_update(0)
> id1 = sys.add_org(25)
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:157: RuntimeError
________________________________ test_deepcopy ________________________________
def test_deepcopy():
sys = systematics.Systematics(lambda x: x, True, True, False, False)
> tax = sys.add_org("hello")
E RuntimeError: Internal Error (in D:\a\phylotrackpy\phylotrackpy\Empirical/include/emp/Evolve/Systematics.hpp line 1458): !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.",
E !store_position && "Trying to add org to position-tracking systematics manager without position. Either specify a valid position or turn of position tracking for systematic manager.": [1]
D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py:209: RuntimeError
=========================== short test summary info ===========================
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_systematics[taxa0]
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_systematics[taxa1]
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_systematics[taxa2]
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_systematics[taxa3]
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_systematics[taxa4]
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_taxa_serialization[taxa0]
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_taxa_serialization[taxa1]
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_taxa_serialization[taxa2]
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_taxa_serialization[taxa3]
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_taxa_serialization[taxa4]
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_shared_ancestor
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_phylostatistics
FAILED D:\a\phylotrackpy\phylotrackpy\test\test_systematics.py::test_deepcopy
======================== 13 failed, 5 passed in 6.47s =========================
Error: Command python -m pytest --import-mode=importlib D:\a\phylotrackpy\phylotrackpy/test failed with code 1. None