Skip to content

Rotor plotting error when using .plot_rotor() #1270

@AmandaRosa

Description

@AmandaRosa

Calling .plot_rotor() raises an exception instead of generating the rotor plot. The traceback is as follows:

Traceback (most recent call last):
  File "/home/amanda/Documentos/a17404-digital-twin-app/app/home.py", line 2864, in run
    fig = st.session_state["user_session"]["rotor_model"].plot_rotor()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/amanda/Documentos/a17404-digital-twin-app/venv/lib/python3.12/site-packages/ross/rotor_assembly.py", line 3137, in plot_rotor
    bearing._patch(position, fig)
  File "/home/amanda/Documentos/a17404-digital-twin-app/venv/lib/python3.12/site-packages/ross/bearing_seal_element.py", line 919, in _patch
    customdata, hovertemplate = self._hover_info()
                                ^^^^^^^^^^^^^^^^^^
  File "/home/amanda/Documentos/a17404-digital-twin-app/venv/lib/python3.12/site-packages/ross/bearing_seal_element.py", line 1549, in _hover_info
    hovertemplate += f"Seal Leakage: {self.seal_leakage:.3e}<br>"
                                     ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unsupported format string passed to list.__format__

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions