Commit 2c8f4de7 authored by Roberto Susino's avatar Roberto Susino
Browse files

Fix potential bug in make_bin_table.pro routine

parent 4032e245
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -3,8 +3,9 @@ function make_bin_table, table
    gen_time = dblarr(n)
    gen_time = dblarr(n)
    for k = 0, n - 1 do gen_time[k] = date_conv(table.gen_time[k], 'JULIAN')
    for k = 0, n - 1 do gen_time[k] = date_conv(table.gen_time[k], 'JULIAN')


    w = where(table.eng_val.contains('N/A'))
    s = where(table.eng_val.contains('N/A'), count)
    table.eng_val[w] = table.raw_val[w]
    if count gt 0 then table.eng_val[s] = table.raw_val[s]

    par_names = table.par_name
    par_names = table.par_name
    s = sort(par_names)
    s = sort(par_names)
    par_names = par_names[s]
    par_names = par_names[s]