Skip to content

Conversation

@seanlaw
Copy link
Contributor

@seanlaw seanlaw commented Dec 31, 2025

Fixed #930 and #929

Pull Request Checklist

Below is a simple checklist but please do not hesitate to ask for assistance!

  • Fork, clone, and checkout the newest version of the code
  • Create a new branch
  • Make necessary code changes
  • Install black (i.e., python -m pip install black or conda install -c conda-forge black)
  • Install flake8 (i.e., python -m pip install flake8 or conda install -c conda-forge flake8)
  • Install pytest-cov (i.e., python -m pip install pytest-cov or conda install -c conda-forge pytest-cov)
  • Run black --exclude=".*\.ipynb" --extend-exclude=".venv" --diff ./ in the root stumpy directory
  • Run flake8 --extend-exclude=.venv ./ in the root stumpy directory
  • Run ./setup.sh dev && ./test.sh in the root stumpy directory
  • Reference a Github issue (and create one if one doesn't already exist)

@gitnotebooks
Copy link

gitnotebooks bot commented Dec 31, 2025

Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1110

@seanlaw
Copy link
Contributor Author

seanlaw commented Dec 31, 2025

@NimaSarajpoor Would you mind providing a review at your earliest convenience?

Copy link
Collaborator

@NimaSarajpoor NimaSarajpoor left a 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
Copy link
Collaborator

@NimaSarajpoor NimaSarajpoor Dec 31, 2025

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 None which 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)

@seanlaw
Copy link
Contributor Author

seanlaw commented Jan 1, 2026

@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?

@NimaSarajpoor
Copy link
Collaborator

Nothing stands out to me. All good! 👍

@seanlaw seanlaw merged commit 33ca9dd into stumpy-dev:main Jan 1, 2026
31 checks passed
@seanlaw
Copy link
Contributor Author

seanlaw commented Jan 1, 2026

Thanks @NimaSarajpoor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve ignore_trivial docstring

2 participants