-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal error for the plot score vs. time #577
Comments
FYI, the log error: May 21 09:56:14 ramp.studio gunicorn[28387]: [2022-05-21 09:56:14,889] [ERROR] Exception on /event_plots/air_passengers_dssp_21 [GET]
May 21 09:56:14 ramp.studio gunicorn[28387]: Traceback (most recent call last):
May 21 09:56:14 ramp.studio gunicorn[28387]: File "/opt/miniconda3/envs/new-server/lib/python3.8/site-packages/flask/app.py", line 2073, in
May 21 09:56:14 ramp.studio gunicorn[28387]: response = self.full_dispatch_request()
May 21 09:56:14 ramp.studio gunicorn[28387]: File "/opt/miniconda3/envs/new-server/lib/python3.8/site-packages/flask/app.py", line 1518, in
May 21 09:56:14 ramp.studio gunicorn[28387]: rv = self.handle_user_exception(e)
May 21 09:56:14 ramp.studio gunicorn[28387]: File "/opt/miniconda3/envs/new-server/lib/python3.8/site-packages/flask/app.py", line 1516, in
May 21 09:56:14 ramp.studio gunicorn[28387]: rv = self.dispatch_request()
May 21 09:56:14 ramp.studio gunicorn[28387]: File "/opt/miniconda3/envs/new-server/lib/python3.8/site-packages/flask/app.py", line 1502, in
May 21 09:56:14 ramp.studio gunicorn[28387]: return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
May 21 09:56:14 ramp.studio gunicorn[28387]: File "/opt/miniconda3/envs/new-server/lib/python3.8/site-packages/flask_login/utils.py", line
May 21 09:56:14 ramp.studio gunicorn[28387]: return func(*args, **kwargs)
May 21 09:56:14 ramp.studio gunicorn[28387]: File "/opt/miniconda3/envs/new-server/lib/python3.8/site-packages/ramp_frontend/views/ramp.py"
May 21 09:56:14 ramp.studio gunicorn[28387]: p = score_plot(db.session, event)
May 21 09:56:14 ramp.studio gunicorn[28387]: File "/opt/miniconda3/envs/new-server/lib/python3.8/site-packages/ramp_frontend/views/visualiz
May 21 09:56:14 ramp.studio gunicorn[28387]: fill_colors_1 = color_gradient(
May 21 09:56:14 ramp.studio gunicorn[28387]: File "/opt/miniconda3/envs/new-server/lib/python3.8/site-packages/ramp_frontend/views/visualiz
May 21 09:56:14 ramp.studio gunicorn[28387]: colors = gray2rgb(
May 21 09:56:14 ramp.studio gunicorn[28387]: IndexError: too many indices for array: array is 2-dimensional, but 3 were indexed |
I should probably stop to click everywhere today :) |
As far as I can tell, there is one extra slicing depth in
Minimal example to reproduce, from ramp_frontend.views.visualization import color_gradient
fill_color_1 = (176, 23, 31)
color_gradient(fill_color_1, [0.5, 0.1, 0.3]) That code was last changed 5 years ago, and I can't see anything relevant in scikit-image changelog, so no idea why this is happening :) |
@rth @glemaitre Test on a local server on my machine gives me this warning that can be related to what we observe: |
I get an error when trying to show the score vs. time:
We should have some python code failing somewhere.
The text was updated successfully, but these errors were encountered: