We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On provenance_redesign, I cannot pass a list of classes to the QueryBuilder:
provenance_redesign
In [1]: qb=QueryBuilder() In [2]: qb.append([Node,Node]) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-2-e54667174ba5> in <module>() ----> 1 qb.append([Node,Node]) /Users/leopold/Personal/Postdoc-MARVEL/repos/aiida/aiida_rmq/aiida/orm/querybuilder.py in append(self, cls, type, tag, filters, project, subclassing, edge_tag, edge_filters, edge_project, outerjoin, **kwargs) 568 569 else: --> 570 self._cls_to_tag_map[cls] = tag 571 l_class_added_to_map = True 572 TypeError: unhashable type: 'list'
Using a tuple instead seems to work fine
In [1]: qb=QueryBuilder() In [2]: qb.append((Node,Node)) Out[2]: <aiida.orm.querybuilder.QueryBuilder at 0x112105350>
Should lists be allowed? If yes, this should be fixed and tested. If not, we should change the documentation of QueryBuilder.append
QueryBuilder.append
The text was updated successfully, but these errors were encountered:
I would say that's linked to #1398 @sphuber would know the design choices taken.
Sorry, something went wrong.
@sphuber agrees that it should be possible to pass a list
fix passing lists to querybuilder
01b11d3
fix aiidateam#2418 * convert lists/sets to tuples for cls <> tag list * add test that uses list instead of tuple
Fixed in PR #2421
sphuber
No branches or pull requests
On
provenance_redesign
, I cannot pass a list of classes to the QueryBuilder:Using a tuple instead seems to work fine
Should lists be allowed?
If yes, this should be fixed and tested.
If not, we should change the documentation of
QueryBuilder.append
The text was updated successfully, but these errors were encountered: