-
Notifications
You must be signed in to change notification settings - Fork 340
Fixed #930 Improve ignore_trivial Docstring and Warnings
#1110
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
Fixed #930 Improve ignore_trivial Docstring and Warnings
#1110
Conversation
|
Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1110 |
|
@NimaSarajpoor Would you mind providing a review at your earliest convenience? |
NimaSarajpoor
left a 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.
@seanlaw
I've added a few comments for your consideration.
stumpy/core.py
Outdated
| T_B : numpy.ndarray | ||
| The time series or sequence that will be used to annotate T_A. For every | ||
| subsequence in T_A, its nearest neighbor in T_B will be recorded. Default is |
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.
Should we remove the last sentence?
Default is
Nonewhich corresponds to a self-join.
This is true if we look at it from stump's perspective. From this function's standpoint, I feel that we should not provide such statement. Are we allowing the function to accept None for T_B? If yes, then we can modify this function to do what the new function core.check_self_join does since we can identify if we are dealing with self-join or not. (see the response I've provided for your comment in the new function)
|
@NimaSarajpoor I've made a few small changes based on your review. I think it's ready to be merged unless anything stands out to you? |
|
Nothing stands out to me. All good! 👍 |
|
Thanks @NimaSarajpoor! |
Fixed #930 and #929
Pull Request Checklist
Below is a simple checklist but please do not hesitate to ask for assistance!
black(i.e.,python -m pip install blackorconda install -c conda-forge black)flake8(i.e.,python -m pip install flake8orconda install -c conda-forge flake8)pytest-cov(i.e.,python -m pip install pytest-covorconda install -c conda-forge pytest-cov)black --exclude=".*\.ipynb" --extend-exclude=".venv" --diff ./in the root stumpy directoryflake8 --extend-exclude=.venv ./in the root stumpy directory./setup.sh dev && ./test.shin the root stumpy directory