-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Collecting exceptions to improve #2101
Comments
Dimensions with periods can cause error messages that are hard to interpret:
instead of
|
|
http://holoviews.org/reference/containers/matplotlib/HoloMap.html results in the message Since no keys were passed in, a message along the lines of philippjfr edit: Now raises: KeyError: 'The data contains keys of length 2, but the kdims only declare 1 dimensions. Ensure that the number of kdims match the length of the keys in your data.' |
resulted in the error: |
Thanks for filing all these, please keep going, this is all really helpful! |
I was quite puzzled since I had called |
The hv_dt = hv.Dataset(df_ig, kdims=[('dt', 'Date'), ('group', "my group")])
hv_dt.to(hv.Curve, 'dt', vdims=[('value1', "value 1 (s)")]) you get an uninformative error message:
|
can also result in |
How about this one:
I would say it could be a bit more specific about what it does not like about the data... |
I have a complicated plot for a DynamicMap that currently(*) produces the assertion error |
%%opts VLine (color='indian_red') |
That latter one is generated by Bokeh though I am surprised there isn't a corresponding Python extension for us to display...maybe there is and it is being suppressed? |
Here's an instance where an exception is missing altogether: if one tries to make an Overlay with only one element like this: hv.Overlay(items=hv.Image(np.random.random((200, 200)))) instead of hv.Overlay(items=[hv.Image(np.random.random((200, 200)))]) the result is an infinite loop. The same happens for Layout. philippjfr edit: Now raises an error. |
And in a similar case, when I try to make a Layout or Overlay which effectively contains only one element like this: hv.Image(np.random.random((200,200))) * hv.Empty I get this:
|
I think |
It actually does not matter if it's |
I think it's because you need to make an instance of hv.Image(np.random.random((200,200))) + hv.Empty() but the error for: hv.Image(np.random.random((200,200))) * hv.Empty() is just bizarre:
|
Addressed a number of these, bumping the remainder to 1.11. |
switching from the bokeh to the matplotlib backend typically forces changes to the options.
It might be useful to suggest the alternate option name where feasible. |
this one left me puzzled:
I had attached options(legend_position=..) to the wrong element |
I agree it might be puzzling but apparently there are no other similar looking keywords - as far as I can tell it is correct. What would you suggest? This would be the same message for any unique looking invalid keyword for any option on any element... |
what does |
I've changed the message slightly in #2354, once that's merged it will say something like: Unexpected plot option 'legend_position' to Layout for loaded extensions matplotlib and bokeh. No similar options found. |
calling hv.Image resulted in |
a call to a DynamicMap using numpy arrays yielded:
The message is confusing since xarray was not used. |
^ with this, would it be possible to output a Nevermind this error was completely unrelated to believing that the dimension values differed; it was because I forgot to name one of the HoloMap dimension label! |
Image density conveys no information to the user: what triggers this message? Empty data set? Data value range == 0? |
One of the major annoyances when using HoloViews is poor exception messages. In this issue I would like to collect such cases so we can improve them.
The text was updated successfully, but these errors were encountered: