Skip to content

Commit

Permalink
Increment version
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery authored and mergify[bot] committed Oct 16, 2024
1 parent 5654d01 commit 82554e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions python/tests/test_provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
import tskit.provenance as provenance


_start_time = time.time()


def get_provenance(
software_name="x",
software_version="y",
Expand Down Expand Up @@ -231,11 +228,12 @@ def test_get_resources_keys(self):

def test_get_resources_values(self):
delta = 0.1
resources = provenance.get_resources(time.time() - delta)
t = time.time()
resources = provenance.get_resources(t - delta)
assert isinstance(resources["elapsed_time"], float)
assert isinstance(resources["user_time"], float)
assert isinstance(resources["sys_time"], float)
assert resources["elapsed_time"] >= delta
assert resources["elapsed_time"] >= delta - 0.001
assert resources["user_time"] > 0
assert resources["sys_time"] > 0
if resource is not None:
Expand Down Expand Up @@ -272,7 +270,7 @@ def test_caching(self):
def test_form(self):
s = provenance.get_schema()
assert s["schema"] == "http://json-schema.org/draft-07/schema#"
assert s["version"] == "1.0.0"
assert s["version"] == "1.1.0"


class TestTreeSeqEditMethods:
Expand Down
2 changes: 1 addition & 1 deletion python/tskit/provenance.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schema": "http://json-schema.org/draft-07/schema#",
"version": "1.0.0",
"version": "1.1.0",
"title": "tskit provenance",
"description": "The combination of software, parameters and environment that produced a tree sequence",
"type": "object",
Expand Down

0 comments on commit 82554e3

Please sign in to comment.