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

✨ NEW: structure.data.import plugin entrypoint #4427

Conversation

dev-zero
Copy link
Contributor

@dev-zero dev-zero commented Oct 7, 2020

The use case is that I would like to add an option to import structures from a CP2K input file.
While this could be done in an aiida-cp2k cli or an extension of verdi data, it would make more sense to add it directly here.
On the other hand it might not be a good idea to open up too many entry points since we would have to maintain those.

@codecov
Copy link

codecov bot commented Oct 7, 2020

Codecov Report

Merging #4427 (3b5c0dc) into develop (a6be2a2) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4427      +/-   ##
===========================================
+ Coverage    79.52%   79.54%   +0.02%     
===========================================
  Files          519      519              
  Lines        37087    37088       +1     
===========================================
+ Hits         29490    29497       +7     
+ Misses        7597     7591       -6     
Flag Coverage Δ
django 74.28% <100.00%> (+0.02%) ⬆️
sqlalchemy 73.19% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiida/plugins/entry_point.py 91.82% <ø> (ø)
aiida/cmdline/commands/cmd_data/cmd_structure.py 84.06% <100.00%> (+0.12%) ⬆️
aiida/cmdline/utils/pluginable.py 92.00% <0.00%> (+24.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6be2a2...3b5c0dc. Read the comment docs.

@dev-zero dev-zero force-pushed the feature/structure-data-import-entrypoint branch from 470f87c to 03886a3 Compare October 7, 2020 15:38
@dev-zero dev-zero requested a review from ltalirz March 19, 2021 08:27
ltalirz
ltalirz previously approved these changes Mar 19, 2021
Copy link
Member

@ltalirz ltalirz left a comment

Choose a reason for hiding this comment

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

thanks @dev-zero - I see no issue with this and would support it (this would anyhow move outside aiida-core together with the materials-science specific classes, if that ever happens).

Could you please bring the PR up to date?

@chrisjsewell any comments?

@dev-zero dev-zero force-pushed the feature/structure-data-import-entrypoint branch from 03886a3 to e7dbdd9 Compare March 19, 2021 16:50
@dev-zero dev-zero changed the title [RFC] cmdline: add structure.data.import plugin entrypoint cmdline: add structure.data.import plugin entrypoint Mar 19, 2021
@dev-zero
Copy link
Contributor Author

@ltalirz thanks a lot for the positive feedback, rebased as requested

@ltalirz ltalirz self-requested a review March 22, 2021 13:14
ltalirz
ltalirz previously approved these changes Mar 22, 2021
Copy link
Member

@ltalirz ltalirz left a comment

Choose a reason for hiding this comment

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

@chrisjsewell I approve this but I'd like one more pair of eyes on this.
Feel free to merge if you agree

Copy link
Member

@chrisjsewell chrisjsewell left a comment

Choose a reason for hiding this comment

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

Looks good cheers, but could you add a small bit of documentation of the feature around here thanks: https://github.com/aiidateam/aiida-core/blob/develop/docs/source/topics/plugins.rst#aiidacmdline

@dev-zero
Copy link
Contributor Author

Looks good cheers, but could you add a small bit of documentation of the feature around here thanks: https://github.com/aiidateam/aiida-core/blob/develop/docs/source/topics/plugins.rst#aiidacmdline

Done. Based on the already existing one with a spec, example and example usage.

Copy link
Member

@ltalirz ltalirz left a comment

Choose a reason for hiding this comment

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

thanks @dev-zero !

@ltalirz
Copy link
Member

ltalirz commented Mar 29, 2021

@chrisjsewell can you approve & merge?

Copy link
Member

@chrisjsewell chrisjsewell left a comment

Choose a reason for hiding this comment

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

cheers!

@chrisjsewell chrisjsewell changed the title cmdline: add structure.data.import plugin entrypoint ✨ NEW: structure.data.import plugin entrypoint Mar 30, 2021
@chrisjsewell chrisjsewell merged commit d35a9d7 into aiidateam:develop Mar 30, 2021
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.

None yet

3 participants