-
Notifications
You must be signed in to change notification settings - Fork 203
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
use verdi node graph generate
to understand effect of node deletion / export
#3436
Comments
Just want to point out that I recently actually made the generation of the CLI options for I can see how it might be useful to first see the effect that the command will have, by visualizing it. But as soon as you have any typical size export, there will be so many nodes, I wonder what information it would give by just looking at it. I think the graph would huge. Still, maybe for delete it makes a lot of sense. Maybe a better solution is to give a |
On second look, this makes sense. I still propose to add a sentence to the description explaining why this is the case.
Ok, I'll have a look.
Well, in particular for high-throughput studies what you typically do is to start with exporting the calculations for one material, which is quite manageable.
I think that's a good idea since it scales better if there are more cli commands where we would like to add such a functionality. |
Just a comment: not sure this would be very useful, in this case, because if you want to know which nodes will be deleted and you see only some of them, you might think that these are the only ones getting deleted and that it's ok and delete them, discovering later you deleted more |
To clarify: That's not what I'm proposing - it would simply say there are too many nodes and not print anything. |
While modifying the help strings I noticed that:
Is it just that these rules were not needed? |
They are defined here: aiida-core/aiida/common/links.py Line 56 in dfd616f
Or do you mean something else? Same goes for return_forward
|
Ah, thanks - then I guess the only thing is that they don't make their way to the cli. |
Yes, exactly, that is decided based on the |
It is often difficult for new users to predict the effect of
verdi node export
orverdi node delete
on a given node. It would be extremely useful, if one could useverdi node graph generate
with a corresponding--export/--delete
option (or similar) to understand what would be happening, i.e.:verdi export create -N <identifier>
(in order to check whether it will contain everything necessary)verdi node delete <identifier>
Currently, this is not really possible since the logic of graph generation and node deletion/export are slightly different.
Furthermore, it would seem wise to harmonize the cli options of node deletion & export (reproduced below), since these operations are kind of "dual" to each other.
Graph generation is a different operation, but reusing some options here might make sense as well (less important).
Finally, I suggest to make the help strings of the options more self-explanatory, e.g. replacing
with
Mentioning @chrisjsewell @giovannipizzi @CasperWA for comment and @danieleongari for info.
Node deletion
Export
Graph generation
The text was updated successfully, but these errors were encountered: