We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
find_intersecting_intervals
import nelpy as nel import neuro_py as npy npy.process.find_intersecting_intervals(nel.EpochArray([1, 3]), nel.EpochArray([0, 2]))
Returns True but doesn't discriminate if overlap is partial
True
The text was updated successfully, but these errors were encountered:
Wouldn't this additional line of code do what you want?
import nelpy as nel import neuro_py as npy set_1 = nel.EpochArray([[1, 2], [5, 6]]) set_2 = nel.EpochArray([[1, 3], [10, 11], [15, 16]]) overlap = npy.process.find_intersecting_intervals(set_1, set_2, return_indices=False) # intervals in set 1 that completely overlap with set 2 set_1.lengths == overlap array([1, 0])
Sorry, something went wrong.
Umm.. It works perfectly. I still added the PR as this way adds a few extra lines in my use case
Successfully merging a pull request may close this issue.
Returns
True
but doesn't discriminate if overlap is partialThe text was updated successfully, but these errors were encountered: