Skip to content

Commit 9862b07

Browse files
committed
sampling fixed but analyze crashes :(
1 parent 97a10cb commit 9862b07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/points.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@
9494
(values (map real->repr pt var-reprs) (real->repr ex output-repr))))
9595
(mk-pcontext pts exs))
9696

97-
(define (pcontext->json pcontext)
97+
(define (pcontext->json pcontext repr)
9898
(for/list ([(pt ex) (in-pcontext pcontext)])
99-
(list pt ex)))
99+
(list (map (curryr value->json repr) pt) (value->json ex repr))))

src/web/demo.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@
358358
(define pctx (job-result-backend result))
359359

360360
(eprintf " complete\n")
361-
(hasheq 'points (pcontext->json pctx)))))
361+
(hasheq 'points (pcontext->json pctx (context-repr (test-context test)))))))
362362

363363
(define analyze-endpoint
364364
(post-with-json-response

0 commit comments

Comments
 (0)