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

Check that calculation type strings start with 'calculation.job.' prefix #1053

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Jan 16, 2018

This is based on PR #751 originally by @oschuett
The PR was invalidated because the fork was deleted

giovannipizzi
giovannipizzi previously approved these changes Jan 16, 2018
@sphuber
Copy link
Contributor Author

sphuber commented Jan 16, 2018

The Travis build is not running. I have no idea why. I tried to cancel and restart it but it does not seem to do anything. It is just not starting at all

@giovannipizzi
Copy link
Member

It's their problem https://www.traviscistatus.com/incidents/c1s4dlyxd4lf https://www.traviscistatus.com normally they fix in a few hours. Anyway I restarted the build again.

…n_info_row

Calculations of the base class JobCalculation will have the class name string
'calculation.job.JobCalculation'. In the _get_calculation_info_row method
the module will therefore be, after the rsplit on the class name, like

    calculation.job

this does not include a period on the end like non base modules would have.
In this exceptional case, the calculation type that is to be returned should
simply be the 'calculation.job' base module
@sphuber sphuber force-pushed the fix_verdi_calculation_list_type_string branch from c6dc7ad to ce866db Compare January 17, 2018 11:37
@sphuber sphuber requested a review from muhrin January 17, 2018 11:52
@muhrin
Copy link
Contributor

muhrin commented Jan 17, 2018

This function shouldn't be a member of this class in the first place. Either way, this fixes the problem it was meant to fix.

@muhrin muhrin closed this Jan 17, 2018
@muhrin muhrin reopened this Jan 17, 2018
@sphuber sphuber merged commit ecdee80 into aiidateam:release_v0.11.1 Jan 17, 2018
@sphuber sphuber deleted the fix_verdi_calculation_list_type_string branch January 17, 2018 13:21
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