Skip to content

Commit

Permalink
fix: output scale
Browse files Browse the repository at this point in the history
  • Loading branch information
mhchia committed Sep 13, 2024
1 parent 9ec563c commit 7158800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zkstats/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ def verifier_verify(proof_path: str, settings_path: str, vk_path: str, selected_
is_in_error = ezkl.felt_to_float(outputs[0], output_scales[0])
assert is_in_error == 1.0, f"result is not within error"
result_arr = []
for index in range(len(outputs)-1):
result_arr.append(ezkl.felt_to_float(outputs[index+1], output_scales[1]))
for index in range(1, len(outputs)):
result_arr.append(ezkl.felt_to_float(outputs[index], output_scales[index]))
return result_arr


Expand Down

0 comments on commit 7158800

Please sign in to comment.