You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the selected edge is e.g. "Ni_K (8333 eV)", the plan that gets sent has E0=8333. The energy_scan plan can also accept the edge name ("Ni_K"). The display should send the name if it is available.
Requirements
queue_plan should parse the energy_combobox current text
If an edge name is present (e.g. "Ni-K"), then the plan should have E0 = "Ni-K".
If no edge name is present, then the text should be converted to a float and passed to E0.
If neither 2 or 3 are valid, then style the combobox as invalid (or some other feedback).
Suggested Solution
Two options:
Parse the combobox text using a regular expression (e.g. [A-Za-z]{1,2}[-_ ][K-N]\d*)
Add the energy and name along with the edge text for each item in the combobox, then read them back out when creating the plan.
Justification
If we include the name, then the plan will include the name in the metadata, and downstream tools can use it. For example, it will be included in the XDI file.
Additional context
The text was updated successfully, but these errors were encountered:
Description of the feature
If the selected edge is e.g. "Ni_K (8333 eV)", the plan that gets sent has
E0=8333
. The energy_scan plan can also accept the edge name ("Ni_K"). The display should send the name if it is available.Requirements
energy_combobox
current textSuggested Solution
Two options:
[A-Za-z]{1,2}[-_ ][K-N]\d*
)Justification
If we include the name, then the plan will include the name in the metadata, and downstream tools can use it. For example, it will be included in the XDI file.
Additional context
The text was updated successfully, but these errors were encountered: