-
Notifications
You must be signed in to change notification settings - Fork 37
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
Error when running first notebook cell block of "Querying for data" section #435
Comments
Strange, I don't think @eimrek encountered this when running in his own environment with |
This is the first cell, I think it might frighten people away with such a big block of exceptions 🤨 |
What versions of packages do you have installed |
I use the aiidalab server @mbercx prepared, and here is the list:
|
--> 133 for structure, in query.iterall():
134 structure.set_extra('formula', structure.get_formula(mode='count')) try changing this to somehting like: structures = query.all()
for structure in structures:
structure.set_extra('formula', structure.get_formula(mode='count')) i.e. collect all the structures from the query first, then make changes to them |
@chrisjsewell thanks that solving the issue, cheers! I add the commit to PR #436. What is this issue caused? We should better add this to the documentation. |
cheers, I guess we should open an issue on aiida-core for it also, since its obviously a change in behaviour to previous |
Agree, can you do it? I may not able to describe the issue precisely. Is that because the node entity is modified on the fly? |
if you could open it please, then I can always append to/modify it later |
yes, |
This one can be closed? Since #436 merged with using Feel free to reopen it if not proper. |
Got the following error when running cell block https://aiida-tutorials.readthedocs.io/en/tutorial-2022-intro/sections/managing_data/querying.html#querying-for-data from notebook. I guess this might be an aiida-core issue? @chrisjsewell
The text was updated successfully, but these errors were encountered: