Error plotting Pie chart showing a breakdown of acquisition protocol frequency.

Issue #569 resolved
Ben Earner
created an issue

Here's the error log from Apache when trying to plot a relatively small amount of studies (27):

[Tue Dec 05 17:41:53.451428 2017] [wsgi:error] [pid 12494:tid 140491454228224] Traceback (most recent call last):
[Tue Dec 05 17:41:53.451433 2017] [wsgi:error] [pid 12494:tid 140491454228224]   File "/home/physics/Envs/OpenREM-dev/lo
cal/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
[Tue Dec 05 17:41:53.451438 2017] [wsgi:error] [pid 12494:tid 140491454228224]     response = wrapped_callback(request,
*callback_args, **callback_kwargs)
[Tue Dec 05 17:41:53.451442 2017] [wsgi:error] [pid 12494:tid 140491454228224]   File "/home/physics/Envs/OpenREM-dev/lo
cal/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Tue Dec 05 17:41:53.451447 2017] [wsgi:error] [pid 12494:tid 140491454228224]     return view_func(request, *args, **kw
args)
[Tue Dec 05 17:41:53.451451 2017] [wsgi:error] [pid 12494:tid 140491454228224]   File "/home/physics/Envs/OpenREM-dev/op
enremdev/openrem/remapp/views.py", line 248, in dx_summary_chart_data
[Tue Dec 05 17:41:53.451455 2017] [wsgi:error] [pid 12494:tid 140491454228224]     user_profile.plotCaseInsensitiveCateg
ories)
[Tue Dec 05 17:41:53.451459 2017] [wsgi:error] [pid 12494:tid 140491454228224]   File "/home/physics/Envs/OpenREM-dev/op
enremdev/openrem/remapp/views.py", line 320, in dx_plot_calculations
[Tue Dec 05 17:41:53.451464 2017] [wsgi:error] [pid 12494:tid 140491454228224]     case_insensitive_categories=plot_case
_insensitive_categories)
[Tue Dec 05 17:41:53.451468 2017] [wsgi:error] [pid 12494:tid 140491454228224]   File "/home/physics/Envs/OpenREM-dev/op
enremdev/openrem/remapp/interface/chart_functions.py", line 328, in average_chart_inc_histogram_data
[Tue Dec 05 17:41:53.451473 2017] [wsgi:error] [pid 12494:tid 140491454228224]     set([d['db_series_names_to_use'] for
d in return_structure['summary'][index]]))
[Tue Dec 05 17:41:53.451477 2017] [wsgi:error] [pid 12494:tid 140491454228224] IndexError: list index out of range

Any ideas?

Comments (3)

  1. David Platten

    Hi Ben. Thanks for pointing this out - it's a bug that I'm fixing now. The frequency charts work if you select "median", but not if you select "mean" or "both" as the average choice.

  2. Log in to comment