We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af81d07 commit 1b49f31Copy full SHA for 1b49f31
graphtik/plot.py
@@ -415,7 +415,12 @@ def make_data_value_tooltip(plot_args: PlotArgs):
415
node = plot_args.nx_item
416
assert node in plot_args.solution
417
val = plot_args.solution[node]
418
- tooltip = "(None)" if val is None else f"({type(val).__name__}) {val}"
+ if val is None:
419
+ tooltip = "(None)"
420
+ elif hasattr(val, "shape"):
421
+ tooltip = f"({type(val).__name__}, shape: {val.shape}) {val}"
422
+ else:
423
+ tooltip = f"({type(val).__name__}) {val}"
424
return quote_html_tooltips(tooltip)
425
426
0 commit comments