@@ -470,7 +470,7 @@ function Base.show(io::IO, ::MIME"text/plain", t::Trial)
470
470
471
471
# Here nextfloat() ensures both endpoints included, will only matter for
472
472
# artificial cases such as: Trial(Parameters(), [3,4,5], [0,0,0], 0, 0)
473
- fences = range (histmin, nextfloat (histmax), length= histwidth)
473
+ fences = range (histmin, nextfloat (float ( histmax) ), length= histwidth)
474
474
bins = histogram_bindata (t. times, fences)
475
475
# Last bin is everything right of last fence, introduce a gap for printing:
476
476
_lastbin = pop! (bins)
@@ -574,39 +574,3 @@ function Base.show(io::IO, ::MIME"text/plain", t::TrialJudgement)
574
574
end
575
575
576
576
577
- #=
578
- # Some visual checks, designed so that mean/median should hit a bar
579
-
580
- using BenchmarkTools: Trial, Parameters
581
- Trial(Parameters(), [pi * 10^9], [0], 0, 0) # one sample
582
-
583
- # mean == median, one bar
584
- Trial(Parameters(), [pi, pi], [0, 0], 0, 0)
585
- Trial(Parameters(), fill(101, 33), vcat(zeros(32), 50), 0, 0)
586
-
587
- # mean == median, three bars -- wrong highlighting before
588
- Trial(Parameters(), [3,4,5], [0,0,0], 0, 0)
589
-
590
- # three bars, including mean not median -- wrong highlighting before
591
- Trial(Parameters(), pi * [1,3,4,4], [0,0,0,100], 1, 1)
592
-
593
- # three bars, including median & both quartiles, not mean -- wrong before
594
- Trial(Parameters(), 99.9 * [1,1,3,14,16], [0,0,99,0,0], 222, 2)
595
-
596
- # same, but smaller range. Note also max GC is not max
597
- Trial(Parameters(), 999 .+ [1,1,3,14,16], [0,0,123,0,0], 45e6, 7)
598
-
599
-
600
- # Check that auto-sizing stops on very small widths:
601
- io = IOContext(stdout, :displaysize => (25,30))
602
- show(io, MIME("text/plain"), Trial(Parameters(), [3,4,5], [0,0,0], 0, 0))
603
- show(io, MIME("text/plain"), Trial(Parameters(), repeat(100 * [3,4,5], 10^6), zeros(3*10^6), 0, 0))
604
-
605
- io = IOContext(stdout, :displaysize => (25,50), :logbins => true) # this is wider
606
- show(io, MIME("text/plain"), Trial(Parameters(), 100 * [3,4,5], [0,0,0], 0, 0))
607
-
608
- # Check that data off the left is OK, and median still highlighted:
609
- io = IOContext(stdout, :histmin => 200.123)
610
- show(io, MIME("text/plain"), Trial(Parameters(), 99.9 * [1,1,3,14,16], [0,0,99,0,0], 222, 2))
611
-
612
- =#
0 commit comments