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
copy=True
@slettner commented that the current behaviour for DocumentArray does work as expected when copy=True is used.
DocumentArray
from docarray import DocumentArray, Document record = DocumentArray([ Document(tags={'track_id': 'a'}), Document(tags={'track_id': 'b'}), ]) all_tracks_a = DocumentArray(record.find({'tags__track_id': {'$eq': 'a'}}), copy=True) all_tracks_b = DocumentArray(record.find({'tags__track_id': {'$in': ['a', 'b']}}), copy=True) result = DocumentArray() for doc in all_tracks_a: doc.tags['label'] = 'l_a' result.extend(all_tracks_a) print(result[0].tags['label']) # >>> 'l_a' for doc in all_tracks_b: doc.tags['label'] = 'l_b' result.extend(all_tracks_b) print(result[0].tags['label']) # >>> 'l_b'
The text was updated successfully, but these errors were encountered:
I guess it is also caused by the issue of dict-style container. #209
Sorry, something went wrong.
exactly
Successfully merging a pull request may close this issue.
@slettner commented that the current behaviour for
DocumentArray
does work as expected whencopy=True
is used.MWE
The text was updated successfully, but these errors were encountered: