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

TypeError: unexpected keyword argument 'from_attribute' passed to the get_state() #2352

Closed
waychal opened this issue Dec 14, 2018 · 1 comment

Comments

@waychal
Copy link
Contributor

waychal commented Dec 14, 2018

get_state() method of calcjob returns the state of the calculation job and it does not receive any keyword arguments. But from many places in code, "from_attribute" argument is passed to this method which produces TypeError.

aiida/orm/node/process/calculation/calcjob.py in get_desc(self)
   2293         properties.
   2294         """
-> 2295         return self.get_state(from_attribute=True)
   2296
   2297

TypeError: get_state() got an unexpected keyword argument 'from_attribute'
@sphuber
Copy link
Contributor

sphuber commented Dec 14, 2018

Fixed in PR #2353

@sphuber sphuber closed this as completed Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants