Skip to content
Snippets Groups Projects
  • Lionel GUEZ's avatar
    01a4802e
    Bug fix: add ndmin argument to loadtxt · 01a4802e
    Lionel GUEZ authored
    The bug occurred when: `args.anim` is None; `shp_tr_dir` contains a
    file `ishape_last.txt`; `ishape_last.txt` contains a single
    value (there is a single date in `shp_tr_dir`). Then loadtxt without
    the argument ndmin return a numpy scalar. Then we cannot call
    `len(ishape_last)`, at line 286.
    01a4802e
    History
    Bug fix: add ndmin argument to loadtxt
    Lionel GUEZ authored
    The bug occurred when: `args.anim` is None; `shp_tr_dir` contains a
    file `ishape_last.txt`; `ishape_last.txt` contains a single
    value (there is a single date in `shp_tr_dir`). Then loadtxt without
    the argument ndmin return a numpy scalar. Then we cannot call
    `len(ishape_last)`, at line 286.