Skip to content

fix: backwards compatibility for _is_subindex#903

Merged
JohannesMessner merged 1 commit intomainfrom
fix-is-subindex
Dec 8, 2022
Merged

fix: backwards compatibility for _is_subindex#903
JohannesMessner merged 1 commit intomainfrom
fix-is-subindex

Conversation

@AnneYang720
Copy link
Copy Markdown
Contributor

Signed-off-by: AnneY [email protected]

Goals:

Serialized DocumentArray from old version may not have the attribute _is_subindex set. This PR enable backwards compatibility for _is_subindex.

Copy link
Copy Markdown
Contributor

@guenthermi guenthermi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved my problem. Thank you!

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 7, 2022

Codecov Report

Base: 88.06% // Head: 84.44% // Decreases project coverage by -3.62% ⚠️

Coverage data is based on head (0c84c38) compared to base (30cc652).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #903      +/-   ##
==========================================
- Coverage   88.06%   84.44%   -3.63%     
==========================================
  Files         138      138              
  Lines        7154     7154              
==========================================
- Hits         6300     6041     -259     
- Misses        854     1113     +259     
Flag Coverage Δ
docarray 84.44% <100.00%> (-3.63%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/array/mixins/setitem.py 74.79% <100.00%> (-8.14%) ⬇️
docarray/array/storage/base/seqlike.py 89.36% <100.00%> (ø)
docarray/array/mixins/embed.py 9.89% <0.00%> (-82.42%) ⬇️
docarray/array/mixins/evaluation.py 8.33% <0.00%> (-80.13%) ⬇️
docarray/array/storage/memory/find.py 54.68% <0.00%> (-40.63%) ⬇️
docarray/document/mixins/sugar.py 60.00% <0.00%> (-20.00%) ⬇️
docarray/array/mixins/group.py 71.05% <0.00%> (-18.43%) ⬇️
docarray/math/helper.py 67.64% <0.00%> (-17.65%) ⬇️
docarray/array/mixins/match.py 83.33% <0.00%> (-8.34%) ⬇️
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@JohannesMessner JohannesMessner merged commit 07cb522 into main Dec 8, 2022
@JohannesMessner JohannesMessner deleted the fix-is-subindex branch December 8, 2022 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants