-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
In the scan parameter parser only range specifications, e.g., par=first:step:last, or singular specifications, e.g., par=value, are supported.
mccode-antlr/src/mccode_antlr/run/range.py
Lines 220 to 226 in bf76294
| 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
Labels
No labels