Skip to content
Snippets Groups Projects
  • Lionel GUEZ's avatar
    d734fd01
    Bug fix: correct test for part of beginning · d734fd01
    Lionel GUEZ authored
    Correct the test to know whether we can use part of the properties
    already calculated for the beginning of the segment. When `len_seg ==
    2 * n_days_avg`, `g.vp.inst_eddies[n][-n_days_avg:] =
    g.vp.inst_eddies[n][n_days_avg:]` so
    `g.vp.inst_eddies[n][:n_days_avg]` and
    `g.vp.inst_eddies[n][-n_days_avg:]` are disjoint. The bug comes from
    commit bdd0ce41.
    d734fd01
    History
    Bug fix: correct test for part of beginning
    Lionel GUEZ authored
    Correct the test to know whether we can use part of the properties
    already calculated for the beginning of the segment. When `len_seg ==
    2 * n_days_avg`, `g.vp.inst_eddies[n][-n_days_avg:] =
    g.vp.inst_eddies[n][n_days_avg:]` so
    `g.vp.inst_eddies[n][:n_days_avg]` and
    `g.vp.inst_eddies[n][-n_days_avg:]` are disjoint. The bug comes from
    commit bdd0ce41.