From 582c4116db4efbaaeb7b553637e1a86c5e236b76 Mon Sep 17 00:00:00 2001 From: Ben Jeffery Date: Mon, 17 Jun 2024 12:29:28 +0100 Subject: [PATCH] Pin numba --- python/requirements/CI-tests-pip/requirements.txt | 1 + python/tests/tsutil.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/python/requirements/CI-tests-pip/requirements.txt b/python/requirements/CI-tests-pip/requirements.txt index 4f516dd29c..284a1ccfbd 100644 --- a/python/requirements/CI-tests-pip/requirements.txt +++ b/python/requirements/CI-tests-pip/requirements.txt @@ -14,3 +14,4 @@ newick==1.3.2 tszip==0.2.2 kastore==0.3.2 lxml==4.9.2 +numba<=0.59.1 #Pinned directly as 0.60.0 fails \ No newline at end of file diff --git a/python/tests/tsutil.py b/python/tests/tsutil.py index d2f98c4775..091e1d0df5 100644 --- a/python/tests/tsutil.py +++ b/python/tests/tsutil.py @@ -1,6 +1,6 @@ # MIT License # -# Copyright (c) 2018-2023 Tskit Developers +# Copyright (c) 2018-2024 Tskit Developers # Copyright (C) 2017 University of Oxford # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -2284,7 +2284,7 @@ def all_fields_ts(edge_metadata=True, migrations=True): tables.reference_sequence.url = "http://example.com/a_reference" # Add some more rows to provenance to have enough for testing. - for _ in range(3): - tables.provenances.add_row(record="A") + for i in range(3): + tables.provenances.add_row(record="A", timestamp=str(i)) return tables.tree_sequence()