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

Conversion of iovsearch option for explicit distribution crashes #155

Open
rikardn opened this issue Mar 7, 2024 · 0 comments
Open

Conversion of iovsearch option for explicit distribution crashes #155

rikardn opened this issue Mar 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rikardn
Copy link
Contributor

rikardn commented Mar 7, 2024

It doesn't work to input a list of lists for the explicit distribution in iovsearch. I think that the type conversion is not working correctly.

Here are some example error messages:

Distribution = “explicit” 
param_list <- list('CL', 'VC', "F1", "MAT") 
- Exception: 'ValueError(\'distribution == "explicit" requires parameters to be given as lists of lists\')' 
 
param_list <- list(list('CL', 'VC', "F1", "MAT")) 
- Invalid `list_of_parameters`: got `[['CL', 'VC', 'F1', 'MAT']]` of type <class 'list'>, expected typing.Optional[typing.List[str]] 
 
param_list <- [list["CL", "VC", "F1", "MAT"]] 
- Error: unexpected '[' in "param_list <- [" 
 
param_list <- list["CL", "VC", "F1", "MAT"] 
- object of type 'builtin' is not subsettable 
 
param_list <- list[list('CL', 'VC', "F1", "MAT")] 
- Error in list[list("CL", "VC", "F1", "MAT")] : object of type 'builtin' is not subsettable 
 
param_list <- list(list('CL'), list('VC'), list("F1"), list("MAT")) 
- Invalid `list_of_parameters`: got `[['CL'], ['VC'], ['F1'], ['MAT']]` of type <class 'list'>, expected typing.Optional[typing.List[str]] 
 
distribution = “disjoint” 
param_list <- list(list('CL'), list('VC'), list("F1"), list("MAT")) 
Invalid `list_of_parameters`: got `[['CL'], ['VC'], ['F1'], ['MAT']]` of type <class 'list'>, expected typing.Optional[typing.List[str]]
@rikardn rikardn added the bug Something isn't working label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant