Skip to content

Commit a00406d

Browse files
Fix typo (#32)
Fix rescaling issue
1 parent 5774220 commit a00406d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nada_algebra/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ def float_from_rational(value: int, log_scale: int = None) -> float:
148148
Returns:
149149
float: The float representation of the input value.
150150
"""
151-
if log_scale is not None:
151+
if log_scale is None:
152152
log_scale = get_log_scale()
153153
return value / (1 << log_scale)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nada-algebra"
3-
version = "0.3.3"
3+
version = "0.3.4"
44
description = "Nada-Algebra is a Python library designed for algebraic operations on NumPy-like array objects on top of Nada DSL and Nillion Network."
55
authors = ["José Cabrero-Holgueras <jose.cabrero@nillion.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)