Skip to content

fix: remove check of default value in _non_empty_fields#565

Merged
JoanFM merged 2 commits intomainfrom
refactor-named-score-representation-564
Sep 27, 2022
Merged

fix: remove check of default value in _non_empty_fields#565
JoanFM merged 2 commits intomainfrom
refactor-named-score-representation-564

Conversation

@guenthermi
Copy link
Copy Markdown
Contributor

Goals:

  • Scores with value 0.0 should also be presented in the string representation of NamedScores
  • check and update documentation, if required. See guide

@guenthermi guenthermi force-pushed the refactor-named-score-representation-564 branch from 44511cf to 27b5dd6 Compare September 26, 2022 11:39
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 26, 2022

Codecov Report

Merging #565 (eb3d4da) into main (4590776) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #565   +/-   ##
=======================================
  Coverage   86.39%   86.40%           
=======================================
  Files         134      134           
  Lines        6718     6714    -4     
=======================================
- Hits         5804     5801    -3     
+ Misses        914      913    -1     
Flag Coverage Δ
docarray 86.40% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
docarray/score/data.py 95.83% <100.00%> (+2.97%) ⬆️

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

@samsja samsja changed the title remove check of default value in _non_empty_fields fix: remove check of default value in _non_empty_fields Sep 26, 2022
@guenthermi guenthermi linked an issue Sep 26, 2022 that may be closed by this pull request
@guenthermi guenthermi self-assigned this Sep 26, 2022
Copy link
Copy Markdown
Member

@alaeddine-13 alaeddine-13 left a comment

Choose a reason for hiding this comment

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

I agree that non_empty_fields behavior is not really needed for scores.
The failing test is definetely unrelated to this PR

@JoanFM
Copy link
Copy Markdown
Member

JoanFM commented Sep 27, 2022

Can we please add a test for this behavior @guenthermi ?

@JoanFM JoanFM marked this pull request as ready for review September 27, 2022 07:46
@JoanFM JoanFM merged commit 2fceb67 into main Sep 27, 2022
@JoanFM JoanFM deleted the refactor-named-score-representation-564 branch September 27, 2022 08:28
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.

Scores with value 0.0 are not presented in the string representation

3 participants