Skip to content

Commit

Permalink
Fix typo (#32)
Browse files Browse the repository at this point in the history
Fix rescaling issue
  • Loading branch information
mathias-nillion authored Jun 12, 2024
1 parent 5774220 commit a00406d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nada_algebra/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ def float_from_rational(value: int, log_scale: int = None) -> float:
Returns:
float: The float representation of the input value.
"""
if log_scale is not None:
if log_scale is None:
log_scale = get_log_scale()
return value / (1 << log_scale)
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 = "nada-algebra"
version = "0.3.3"
version = "0.3.4"
description = "Nada-Algebra is a Python library designed for algebraic operations on NumPy-like array objects on top of Nada DSL and Nillion Network."
authors = ["José Cabrero-Holgueras <jose.cabrero@nillion.com>"]
readme = "README.md"
Expand Down

0 comments on commit a00406d

Please sign in to comment.