Skip to content

Commit 0f56fb4

Browse files
add debug
1 parent 06393ed commit 0f56fb4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ jobs:
9494
- name: pytest
9595
run: ci/pytest_unit.sh
9696

97-
- name: test compatibility with Cirq
98-
run: |
99-
pip install cirq-core
100-
pytest test/* -m cirq
10197

10298
buid-and-test-performance:
10399
strategy:
@@ -127,3 +123,8 @@ jobs:
127123
128124
- name: test performance
129125
run: ci/pytest_perf.sh
126+
127+
- name: test compatibility with Cirq
128+
run: |
129+
pip install cirq-core
130+
pytest test/* -m cirq

tunits/core/cython/frac.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ cpdef frac float_to_twelths_frac(a) except *:
8787
cdef double raised_d = 12.0*d
8888
cdef long long x = <long long>c_floor(raised_d + 0.5)
8989
if not (-1e-5 < raised_d - x < 1e-5):
90+
print(raised_d, x, <long long>(raised_d))
9091
raise ValueError("Not a twelfth.")
91-
9292
return frac_least_terms(x, 12)
9393

9494

0 commit comments

Comments
 (0)