SolverBenchmark.jl icon indicating copy to clipboard operation
SolverBenchmark.jl copied to clipboard

`hdr_override` in `join` doesn't affect `invariant_cols`.

Open abelsiqueira opened this issue 6 years ago • 2 comments
trafficstars

hdr_override = Dict(:name => "Name", :f => "f(x)", :t => "Time")                            
df = join(stats, [:f, :t], invariant_cols=[:name], hdr_override=hdr_override)               
markdown_table(stdout, df) 
|    id |    name | f(x)_alpha | Time_alpha | f(x)_beta | Time_beta | f(x)_gamma | Time_gamma |
|-------|---------|------------|------------|-----------|-----------|------------|------------|
|     1 | prob001 |   -6.9e-01 |    6.2e+01 |  -1.1e+00 |   1.8e+02 |    6.3e-02 |    3.3e+01 |
|     2 | prob002 |   -7.6e-01 |    3.5e+02 |   8.2e-01 |   8.0e+01 |    1.2e-01 |    6.9e+02 |
|     3 | prob003 |    4.0e-01 |    7.7e+02 |   1.5e-01 |   6.8e+02 |    2.7e+00 |    8.4e+02 |
|     4 | prob004 |    8.1e-01 |    4.3e+01 |  -3.3e-01 |   9.3e+02 |   -6.9e-01 |    1.9e+02 |
|     5 | prob005 |   -3.5e-01 |    2.7e+02 |   1.4e+00 |   9.7e+02 |   -5.5e-02 |    1.6e+02 |
|     6 | prob006 |   -1.9e-01 |    6.7e+01 |  -4.4e-01 |   6.5e+02 |    4.2e-01 |    9.0e+02 |
|     7 | prob007 |   -1.6e+00 |    1.6e+02 |   1.1e+00 |   6.0e+02 |   -1.4e+00 |    9.5e+01 |
|     8 | prob008 |   -2.5e+00 |    6.1e+02 |  -2.5e-01 |   4.8e+02 |   -4.5e-01 |    7.8e+02 |
|     9 | prob009 |    2.3e+00 |    1.4e+02 |   2.9e-01 |   6.3e+01 |   -8.8e-01 |    8.7e+02 |
|    10 | prob010 |    2.2e-01 |    8.4e+02 |  -3.5e+00 |   4.7e+02 |    1.1e+00 |    8.4e+02 |

The column name should be Name.

abelsiqueira avatar Mar 07 '19 01:03 abelsiqueira

@abelsiqueira sir is it some logical error, or just a typo error

Jay-sanjay avatar Oct 21 '23 06:10 Jay-sanjay

Logical. But it's from 4 years ago, I don't know if it is still broken.

abelsiqueira avatar Oct 21 '23 06:10 abelsiqueira