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

Problems with default value of run_ruvsearch #128

Open
rikardn opened this issue Nov 22, 2022 · 1 comment
Open

Problems with default value of run_ruvsearch #128

rikardn opened this issue Nov 22, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@rikardn
Copy link
Contributor

rikardn commented Nov 22, 2022

Using default value for run_ruvsearch crashes:

TypeError: Invalid `groups`: got `4.0` of type <class 'float'>, expected <class 'int'>
Full stack:
TypeErrorInvalid `groups`: got `4.0` of type <class 'float'>, expected <class 'int'>c("  File \"/home/rikard/.virtualenvs/r-reticulate/lib/python3.10/site-packages/pharmpy/tools/wrap.py\", line 35, in func\n    return run_tool(tool_name, *args, **kwargs)\n", "  File \"/home/.virtualenvs/r-reticulate/lib/python3.10/site-packages/pharmpy/tools/run.py\", line 177, in run_tool\n    return run_tool_with_name(name, tool, *args, **kwargs)\n", "  File \"/home/rikard/.virtualenvs/r-reticulate/lib/python3.10/site-packages/pharmpy/tools/run.py\", line 193, in run_tool_with_name\n    validate_input(*args, **tool_options)\n", 
"  File \"/home/.virtualenvs/r-reticulate/lib/python3.10/site-packages/pharmpy/internals/fn/type.py\", line 33, in _wrapped\n    raise TypeError(\n")Traceback (most recent call last):
  File "/home/.virtualenvs/r-reticulate/lib/python3.10/site-packages/pharmpy/tools/wrap.py", line 35, in func
    return run_tool(tool_name, *args, **kwargs)
  File "/home/.virtualenvs/r-reticulate/lib/python3.10/site-packages/pharmpy/tools/run.py", line 177, in run_tool
    return run_tool_with_name(name, tool, *args, **kwargs)
  File "/home/.virtualenvs/r-reticulate/lib/python3.10/site-packages/pharmpy/tools/run.py", line 193, in run_tool_with_name
    validate_input(*args, **tool_options)
  File "/home/.virtualenvs/r-reticulate/lib/python3.10/site-packages/pharmpy/internals/fn/type.py", line 33, in _wrapped
    raise TypeError(
TypeError: Invalid `groups`: got `4.0` of type <class 'float'>, expected <class 'int'>
@rikardn rikardn added the bug Something isn't working label Nov 22, 2022
@pharmpy-dev-123
Copy link
Collaborator

Same as #78. I think handling these default values is part of the discussion in #80.

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

2 participants