erikw / taiga-stats

Generate statistics from Taiga and produce burnup diagrams, CFDs, dependency graphs and more.
BSD 3-Clause "New" or "Revised" License
41 stars 6 forks source link

[cfd] IndexError: list index out of range #3

Closed pschuele closed 1 year ago

pschuele commented 5 years ago

hey,

thanks for taiga-stats :)

I'm currently trying to get a CFD for my project but I keep running into this error:

$ ./taiga-stats cfd

Traceback (most recent call last):
  File "./taiga-stats", line 805, in <module>
    sys.exit(main())
  File "./taiga-stats", line 801, in main
    return command_func(args)
  File "./taiga-stats", line 162, in wrapper
    func(args)
  File "./taiga-stats", line 509, in cmd_gen_cfd
    data = read_daily_cfd(output_path, tag)
  File "./taiga-stats", line 137, in read_daily_cfd
    data[col].append(value)
IndexError: list index out of range

do you have an idea how to solve this?

thanks!

pschuele commented 5 years ago

do you need more information (version, ...)?

i'm on master with all current requirements(.txt) installed.

erikw commented 5 years ago

Hey!

I would honestly say the easiest thing would be if you you set a debug breakpoint yourself and debug it, as you have the datafiles that I don't have.

I would guess it has to do with the stored values - maybe the stored data got changed over time and is not consistent e.g. The number of columns stored. Then the data file must be manually edited if project settings has been changed :)

pschuele commented 5 years ago

Hi @erikw ,

thanks for the feedback, I'll have a look. I also tried to recreate the data file and it still did not work ...


$ mv cfd_.dat cfd_.dat.old
$ ./taiga-stats store_daily
$ ./taiga-stats cfd

Traceback (most recent call last):
  File "./taiga-stats", line 804, in <module>
    sys.exit(main())
  File "./taiga-stats", line 800, in main
    return command_func(args)
  File "./taiga-stats", line 161, in wrapper
    func(args)
  File "./taiga-stats", line 508, in cmd_gen_cfd
    data = read_daily_cfd(output_path, tag)
  File "./taiga-stats", line 136, in read_daily_cfd
    data[col].append(value)
IndexError: list index out of range
erikw commented 3 years ago

@pschuele Hey did this issue ever get resolved?

github-actions[bot] commented 1 year ago

Issue is stale; will soon close.