Skip to content

Name Formatting #247

@ZLLentz

Description

@ZLLentz

Any thoughts on formatting the device name before it gets placed onto the screen?

These are usually by convention the same as the Python name, so they are held to the Python naming standards. A device name might be something like at2l0 or im1l1_ppm or sb1_pim_01 but putting a name like this into the screen as the title looks wrong. You'd really want these to display like AT2L0, IM1L1-PPM, SB1-PIM-01, or sometimes you may want to customize how the name is formatted. (All caps is correct for these names, but another name might be better with the first letter capitalized).

Perhaps the answer is to include this in the templates? Or to stop using the name field as a Python identifier, and then Pythonizing it when we load from happi? Or to make the device provide a separately formatted name field for titles vs for IPython? I'm not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions