Skip to content

Commit

Permalink
bump version to v0.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mhchia committed Sep 13, 2024
1 parent 7158800 commit 84c5520
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "zkstats"
version = "0.1.9"
version = "0.1.10"
description = ""
authors = ["Jern Kunpittaya", "Kevin Chia"]

Expand Down
6 changes: 4 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ def error() -> float:

@pytest.fixture
def column_0():
return torch.tensor([3.0, 4.5, 1.0, 2.0, 7.5, 6.4, 5.5, 6.4])
# return torch.tensor([3.0, 4.5, 1.0, 2.0, 7.5, 6.4, 5.5, 6.4])
return torch.tensor([46.2, 40.4, 44.8, 48.1, 51.2, 91.9, 38.2])


@pytest.fixture
def column_1():
return torch.tensor([2.7, 3.3, 1.1, 2.2, 3.8, 8.2, 4.4, 3.8])
# return torch.tensor([2.7, 3.3, 1.1, 2.2, 3.8, 8.2, 4.4, 3.8])
return torch.tensor([3.5, 3.0, 3.3, 3.6, 3.8, 8.3, 3.1])


@pytest.fixture
Expand Down
4 changes: 3 additions & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def test_integration_select_partial_columns(tmp_path, column_0, column_1, error,
data_to_json_file(data_path, data_json)

def simple_computation(state, args):
return state.mean(args["columns_0"])
m_0 = state.mean(args["columns_0"])
m_1 = state.mean(args["columns_1"])
return m_0, m_1
precal_witness_path = tmp_path / "precal_witness_path.json"
selected_columns, _, model = computation_to_model(simple_computation, precal_witness_path, data_shape, True, error)
# gen settings, setup, prove, verify
Expand Down

0 comments on commit 84c5520

Please sign in to comment.