Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise the algorithm for generating simplified plan descriptions #178

Open
dmgav opened this issue Jul 11, 2021 · 0 comments
Open

Revise the algorithm for generating simplified plan descriptions #178

dmgav opened this issue Jul 11, 2021 · 0 comments

Comments

@dmgav
Copy link
Contributor

dmgav commented Jul 11, 2021

Revise the algorithm for simplifying plan descriptions in the function bluesky_queueserver.conversions.simplify_plan_descriptions(). The algorithm must be able to recognize a predefined set of types, reliably identify if the type is a list (typing.List or typing.Tuple) and the type of list elements if it is one of supported types (int, float or str). If it is recognized, that the scalar type or element type is not supported, the type should be omitted. The default value should be decoded from the full description and sent as is.

The required modifications are relatively simple. The goal is to completely omit unsupported types in simplified descriptions, which may be convenient for autogenerating forms in web applications. It is assumed that the plans will use only supported parameter types if web forms are expected to be generated automatically based on plan descriptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant