-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add raw parser of Lowdin charges from projwfc output file #425
Add raw parser of Lowdin charges from projwfc output file #425
Conversation
Same comment as previous PR. Merging 600k lines is suboptimal :) is it possible to reduce this one as well? |
Yeh geez that's a big file, perhaps these files shouldn't be fully stored in the retrieved folder for projwfc? Maybe trim them to only contain the first/last x lines. |
Thanks @chrisjsewell . Would it make sense to actually add this to the |
I think maybe you didn't read my first comment lol. Do you want me to add that in this PR? |
@sphuber In aac5790 I have added the I haven't made it optional, since it doesn't take up too much memory. On this point though, I did a little analysis of the memory resources taken up by the from pathlib import Path
projwfc = orm.load_node(50845)
for linkt in projwfc.get_outgoing().all():
path = linkt.node._repository._repo_folder.abspath
size = sum(f.stat().st_size
for f in Path(path).glob('**/*') if f.is_file())
print(f"{linkt.link_label+':':20s} {size/1e6:5.2f} Mb")
This isn't doing the size of my repository any favors! As I mentioned above, perhaps Two middle grounds would be to either:
|
Thanks for the analysis, very useful. I would be in favor of moving the output file to retrieved temporary. The parsing should be relatively complete and if one really would need to reparse, one could rerun the calculation, even though that is still not super convenient. But it would save almost 50% of disk space, which is a lot. Regarding the zipping: I just opened a new AiiDA enhancement proposal to improve the repository, which should come with support for packing and compressing repository contents. |
… with `retrieve_temporary_list`
…etrieve_temporary_list``
@sphuber e395edd moves |
@chrisjsewell I opened a PR to allow passing |
@shuber, I guess you meant aiidateam/aiida-core#3446, but yes that's sorted ta. I have no more changes to make, but I guess that means this PR will need to wait until aiida-core>1.0.0b6 is released? |
Yes, but since we are releasing |
Finally lol, yeh that's no problem |
Hi @chrisjsewell I had to put Also, I recently homogenized all exit codes across all calculation jobs in PR #479 please apply the same conventions to your new exit codes for Thanks a lot |
Hi @chrisjsewell , this has been open for quite a while now. |
@chrisjsewell if it's alright by you, I'll add these changes in with #749 and make you a co-author there. |
I want my attribution! |
Then I will close this PR. I've made a note to add the changes to #749 so I don't forget. 😁 |
This is intended to be merged after #424, then used to add an output node to
ProjwfcCalculation
containing this data.