-
Notifications
You must be signed in to change notification settings - Fork 626
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
Connect text feature with back end #341
Connect text feature with back end #341
Conversation
Fixes #246 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only 2 comments 😄
@@ -304,6 +309,9 @@ struct Text { | |||
Tablet tablet_; | |||
}; | |||
|
|||
/* | |||
* Text reader. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to match with the comment style in other classes.
if data_size <= num_records: | ||
return data | ||
|
||
span = float(data_size) / (num_records - 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if num_records == 1, it would 'div by 0'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The num_records is like a constant, where is currently set to 100.
I will move it away from the parameter and set it into a const
Remove test log
7c90cb3
to
d6b4a2e
Compare
@daming-lu Code, updated. |
No description provided.