Skip to content
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

docs: docstring for types/score #1903

Merged
merged 1 commit into from
Feb 8, 2021
Merged

docs: docstring for types/score #1903

merged 1 commit into from
Feb 8, 2021

Conversation

CatStark
Copy link
Member

@CatStark CatStark commented Feb 8, 2021

No description provided.

@jina-bot jina-bot added size/S area/core This issue/PR affects the core codebase component/type labels Feb 8, 2021
@CatStark CatStark marked this pull request as ready for review February 8, 2021 13:01
@CatStark CatStark requested a review from a team as a code owner February 8, 2021 13:01
view (i.e. weak reference) from it or a deep copy from it.
:param kwargs: other parameters to be set
"""
"""Set constructor."""
Copy link
Member

Choose a reason for hiding this comment

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

why set?

Copy link
Member Author

@CatStark CatStark Feb 8, 2021

Choose a reason for hiding this comment

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

It has to be an imperative sentence. I don't know what else could be better wording; "define"?

Copy link
Member

@bwanglzu bwanglzu left a comment

Choose a reason for hiding this comment

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

LGTM!

@codecov
Copy link

codecov bot commented Feb 8, 2021

Codecov Report

Merging #1903 (530bf55) into master (3838392) will decrease coverage by 2.33%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1903      +/-   ##
==========================================
- Coverage   84.39%   82.05%   -2.34%     
==========================================
  Files         148      148              
  Lines        7062     7062              
==========================================
- Hits         5960     5795     -165     
- Misses       1102     1267     +165     
Impacted Files Coverage Δ
jina/helloworld/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
jina/helloworld/components.py 0.00% <0.00%> (-100.00%) ⬇️
jina/helloworld/helper.py 0.00% <0.00%> (-90.63%) ⬇️
jina/helloworld/chatbot/__init__.py 0.00% <0.00%> (-89.29%) ⬇️
jina/executors/devices.py 50.98% <0.00%> (-5.89%) ⬇️
jina/parsers/helloworld.py 95.00% <0.00%> (-5.00%) ⬇️
jina/drivers/convert.py 92.59% <0.00%> (-3.71%) ⬇️
jina/logging/profile.py 67.20% <0.00%> (-3.21%) ⬇️
jina/drivers/evaluate.py 96.55% <0.00%> (-1.73%) ⬇️
jina/flow/base.py 80.31% <0.00%> (-0.79%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3838392...9adb8ed. Read the comment docs.

@CatStark CatStark removed the request for review from BastinJafari February 8, 2021 13:05
@github-actions
Copy link

github-actions bot commented Feb 8, 2021

Latency summary

Current PR yields:

  • 😶 index QPS at 951, delta to last 3 avg.: +5%
  • 😶 query QPS at 15, delta to last 3 avg.: +2%

Breakdown

Version Index QPS Query QPS
current 951 15
0.9.31 904 14

Backed by latency-tracking. Further commits will update this comment.

@CatStark CatStark merged commit 6dae7b5 into master Feb 8, 2021
@CatStark CatStark deleted the docstring-score branch February 8, 2021 13:23
return self._pb_body.ref_id

@ref_id.setter
def ref_id(self, val: str):
self._pb_body.ref_id = val

def set_attrs(self, **kwargs):
"""Bulk update Document fields with key-value specified in kwargs
"""Udate Document fields with key-value specified in kwargs.
Copy link
Contributor

Choose a reason for hiding this comment

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

'Udate' should be' Update' ?

:param copy: When ``score`` is given as a :class:`NamedScoreProto` object, build a
view (i.e. weak reference) from it or a deep copy from it.
:type copy: bool
:param kwargs: Other parameters to be set
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing a period at the end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core This issue/PR affects the core codebase component/type size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants