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.
Any thoughts on formatting the device name before it gets placed onto the screen?
These are usually by convention the same as the
Pythonname, so they are held to thePythonnaming standards. A device name might be something likeat2l0orim1l1_ppmorsb1_pim_01but putting a name like this into the screen as the title looks wrong. You'd really want these to display likeAT2L0,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
namefield as aPythonidentifier, and thenPythonizingit when we load fromhappi? Or to make the device provide a separately formatted name field for titles vs forIPython? I'm not sure.