-
Notifications
You must be signed in to change notification settings - Fork 28
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
aiida-cp2k cli #105
base: main
Are you sure you want to change the base?
aiida-cp2k cli #105
Conversation
dev-zero
commented
Apr 23, 2020
•
edited
Loading
edited
e2a4eb6
to
f74e6f7
Compare
@yakutovicha what do you think? |
c91bcd5
to
9b01c16
Compare
... including a simple structure import implementation to import structures from a CP2K input file via the cp2k-input-tools.
…cture.import entrypoint AiiDA v1.6.1 got a new entrypoint for registering command line format importers, use that to make "verdi data structure import cp2k ..." possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @dev-zero. Looks very good.
The only thing that I would like to change is the workflow submission part. Currently, you added there a cp2k input parsing, which (I believe) shouldn't be there.
What I want to propose instead is to add the data/input_dict
command that would create an input Dict
object. Then, when launching work chains I would rather prefer to deal with the existing AiiDA objects.
default=1, | ||
show_default=True, | ||
help='The maximum number of machines (nodes) to use for the calculations.') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the number of CPUs per node parameter.
Thanks for the review.
Just to make sure I understand it, you mean that the user will do a 2-step process? Something like:
Or that the import part should be factored out into a separate function? |
Yes. I also wanted to suggest parsing different objects separately: $ aiida-cp2k data input_dict "/path/to/my/cp2k.inp"
Successfully generated the CP2K Parameter<6789>
$ aiida-cp2k data structure "/path/to/my/cp2k.inp"
Successfully created StructureData<6790>
$ aiida-cp2k data basisset "/path/to/my/cp2k.inp"
Successfully imported BasisSet<6791> This would allow importing objects from the other file types: CIF, XYZ for structure, JSON, YAML for input dict, etc. The submission part looks ok to me. |
Ok, will do. But it would be still nice to have a single command to simply run any given CP2K input via AiiDA with AiiDA taking care of all the rest. About the import interface:
|
I agree
I would say yes. Btw, is your parsing tool capable of reading files that are referenced in the CP2K input (like structure, basis sets)? |
I would say that
We can also ask ping users, to hear their opinion. |
Hmm, ok, that makes it a bit more involved.
It can correctly parse
|
@dev-zero I see you posted the same comment twice. Is my input still needed? Or will you go ahead implementing the changes that we discussed? |
@dev-zero, please let me know if you need any help here. I can try to take over some of the parts. |