Skip to content

Error when selecting "Dimethyl ether" in dropdown menu #1

@RenkeHuang

Description

@RenkeHuang
Image

The above error occurs for “Dimethyl ether.” This bug is caused by a mismatch between the labels used in the Streamlit dropdown menu and the keys in the EXAMPLE_MOLECULES dictionary.

A good practice is to consolidate the dropdown options directly from the dictionary keys to ensure consistency. This can be done by modifying lines 430–453 as:

molecule_choice = st.selectbox(
    "Select example molecule or paste custom XYZ:",
    list(EXAMPLE_MOLECULES.keys()) + ["Custom"]
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions