Skip to content

Add explicit List to Range and Singular scan-parameter specifictions #172

@g5t

Description

@g5t

In the scan parameter parser only range specifications, e.g., par=first:step:last, or singular specifications, e.g., par=value, are supported.

def parse_scan_parameters(unparsed: list[str]) -> dict[str, MRange | Singular]:
"""Parse a list of input parameters into a dictionary of MRange or Singular objects.
:parameter unparsed: A list of parameters.
:return: A dictionary of MRange or Singular objects. The Singular objects have their maximum length set to the
maximum iterations of all the ranges to avoid infinite iterations.
"""

This can be limiting if, e.g., a non-linear scan is required.

To support such a possibility, the parser should be modified to include, e.g., par=first,second,third,fourth,...,last, explicit list parsing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions