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

Remove duplicate line of setting cmdline arguments #585

Merged
merged 2 commits into from
Oct 14, 2020

Conversation

qiaojunfeng
Copy link
Collaborator

The cmdline_params should be in codeinfo, not calcinfo, am I right?

@greschd greschd requested a review from sphuber October 14, 2020 17:20
@greschd
Copy link
Member

greschd commented Oct 14, 2020

I think you're right, but the tests explicitly test the calcinfo. Maybe the tests need to be adapted, but I'll let @sphuber give his opinion on this.

@sphuber
Copy link
Contributor

sphuber commented Oct 14, 2020

It should indeed be on the CodeInfo

https://github.com/aiidateam/aiida-core/blob/bd6903d88a4d88077150763574784a1bc375c644/aiida/common/datastructures.py#L150

The tests are just checking the wrong object and because of the duplicated line they are actually passing.

Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @qiaojunfeng

@sphuber sphuber merged commit cf125e3 into aiidateam:develop Oct 14, 2020
@qiaojunfeng qiaojunfeng deleted the fix_cmdline_arg branch October 15, 2020 06:43
sphuber pushed a commit that referenced this pull request Nov 17, 2020
…585)

It should be set on `CodeInfo` but was by accident also set on the `CalcInfo`.
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 this pull request may close these issues.

3 participants