Skip to content
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

Plotting grids with empty id field for nodes causes error #197

Open
danielfeismann opened this issue May 14, 2024 · 0 comments
Open

Plotting grids with empty id field for nodes causes error #197

danielfeismann opened this issue May 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@danielfeismann
Copy link
Member

see OsmoGrid#433 for details

File ~\PycharmProjects\pypsdm\pypsdm\plots\grid.py:165, in _add_node_trace.<locals>.to_hover_text(node_data)
    159 if node_data.name not in node_hover_data:
    160     raise ValueError(
    161         f"Node with uuid: {node_data.name} not found in node_hover_data"
    162     )
    164 return (
--> 165     node_data["id"]
    166     + "<br>"
    167     + node_data.name
    168     + "<br>"
    169     + "<br>".join(
    170         [
    171             f"{key}={value}"
    172             for key, value in node_hover_data[node_data.name].items()
    173         ]
    174     )
    175 )

TypeError: unsupported operand type(s) for +: 'float' and 'str'
@danielfeismann danielfeismann added the bug Something isn't working label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant