Skip to content

Commit 08433e7

Browse files
add more debug info
1 parent 877e87a commit 08433e7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test_perf/test_value_performance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_perf_repr(a: Value) -> str:
7474
return repr(a)
7575

7676

77-
@perf_goal(avg_nanos=830)
77+
@perf_goal(avg_nanos=850)
7878
def test_perf_parse_atom() -> Value:
7979
return Value(1, 'kilogram')
8080

tunits/core/cython/frac.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ cpdef frac float_to_twelths_frac(a) except *:
8787
cdef double d = float(a)
8888
cdef long long x = <long long>c_floor(12*d + 0.5)
8989
if abs(12*d - x) > 1e-5:
90-
print('spit', d, x, 12*d - x, a, '%20f'%d, '%20f'%a)
90+
print('spit', d, x, 12*d - x, a, '%.20f'%d, '%.20f'%a, '%.20f'%(12*d))
9191
raise ValueError("Not a twelfth.")
9292

9393
return frac_least_terms(x, 12)

0 commit comments

Comments
 (0)