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

PwCalculation: fix bug when hubbard_file is specified #596

Merged
merged 1 commit into from
Oct 24, 2020

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Oct 23, 2020

Fixes #595

The prepare_for_submission was using the filename of the
hubbard_file input as the UUID in the local_copy_list which
obviously fails. In addition, the input_file_name_hubbard_file
classproperty of the HpCalculation clas was changed and adapted here
to filename_input_hubbard_parameters.

Note that a test cannot be added because it would have to depend on the
aiida-quantumespresso-hp plugin, which itself depends on
aiida-quantumespresso, creating a circular dependency. The test will
be added to the former to make sure this behavior works.

The `prepare_for_submission` was using the `filename` of the
`hubbard_file` input as the UUID in the `local_copy_list` which
obviously fails. In addition, the `input_file_name_hubbard_file`
classproperty of the `HpCalculation` clas was changed and adapted here
to `filename_input_hubbard_parameters`.

Note that a test cannot be added because it would have to depend on the
`aiida-quantumespresso-hp` plugin, which itself depends on
`aiida-quantumespresso`, creating a circular dependency. The test will
be added to the former to make sure this behavior works.
@sphuber sphuber requested a review from mbercx October 23, 2020 13:41
Copy link
Member

@mbercx mbercx left a comment

Choose a reason for hiding this comment

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

Thanks @sphuber! It looks fine to me, but I haven't been able to do a test run yet since I'm not very familiar with hp.x and aiida-quantumespresso-hp.

Perhaps we can spend a little time during our next meeting to discuss this and then I can provide the test for aiida-quantumespresso-hp?

@sphuber
Copy link
Contributor Author

sphuber commented Oct 24, 2020

Perhaps we can spend a little time during our next meeting to discuss this and then I can provide the test for aiida-quantumespresso-hp?

Sure, good idea. I already added a test to the other plugin, but we can have a look. Thanks for the review

@sphuber sphuber merged commit 655c7ce into develop Oct 24, 2020
@sphuber sphuber deleted the fix/595/pw-hubbard-file branch October 24, 2020 16:43
sphuber added a commit that referenced this pull request Nov 17, 2020
The `prepare_for_submission` was using the `filename` of the
`hubbard_file` input as the UUID in the `local_copy_list` which
obviously fails. In addition, the `input_file_name_hubbard_file`
classproperty of the `HpCalculation` clas was changed and adapted here
to `filename_input_hubbard_parameters`.

Note that a test cannot be added because it would have to depend on the
`aiida-quantumespresso-hp` plugin, which itself depends on
`aiida-quantumespresso`, creating a circular dependency. The test will
be added to the former to make sure this behavior works.
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.

PwCalculation: bug in prepare_for_submission when hubbard_file is specified
2 participants