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

Calling the dir method on a ScriptInterfaceHelper object raises a TypeError #4673

Closed
RiccardoFrenner opened this issue Feb 18, 2023 · 0 comments · Fixed by #4674
Closed

Calling the dir method on a ScriptInterfaceHelper object raises a TypeError #4673

RiccardoFrenner opened this issue Feb 18, 2023 · 0 comments · Fixed by #4674

Comments

@RiccardoFrenner
Copy link
Contributor

Below is an example:

import espressomd.observables
dir(espressomd.observables.Energy())

Output:

File "script_interface.pyx", line 399, in espressomd.script_interface.ScriptInterfaceHelper.__dir__
TypeError: unsupported operand type(s) for +: 'dict_keys' and 'list'

This can be fixed by converting the dict_keys to a list in a single line.

@kodiakhq kodiakhq bot closed this as completed in #4674 Feb 20, 2023
kodiakhq bot added a commit that referenced this issue Feb 20, 2023
Fixes #4673 

Description of changes:
- Convert `dict_keys` to list before trying to concatenate with a list
jngrad pushed a commit to jngrad/espresso that referenced this issue Mar 2, 2023
Fixes espressomd#4673 

Description of changes:
- Convert `dict_keys` to list before trying to concatenate with a list
jngrad pushed a commit to jngrad/espresso that referenced this issue Mar 2, 2023
Fixes espressomd#4673 

Description of changes:
- Convert `dict_keys` to list before trying to concatenate with a list
jngrad pushed a commit to jngrad/espresso that referenced this issue Mar 2, 2023
Fixes espressomd#4673 

Description of changes:
- Convert `dict_keys` to list before trying to concatenate with a list
jngrad pushed a commit to jngrad/espresso that referenced this issue Mar 2, 2023
Fixes espressomd#4673 

Description of changes:
- Convert `dict_keys` to list before trying to concatenate with a list
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

Successfully merging a pull request may close this issue.

1 participant