-
Notifications
You must be signed in to change notification settings - Fork 339
Fixed #1111 Add module for sliding dot product; Include pyfftw as (soft) dependency #1118
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
base: main
Are you sure you want to change the base?
Fixed #1111 Add module for sliding dot product; Include pyfftw as (soft) dependency #1118
Conversation
|
Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1118 |
|
@seanlaw |
seanlaw
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.
Your changes look good to me
To make sure we are on the same page, I assume it is still okay to push changes here in this PR. |
Yes, should be fine. If you feel like there are multiple distinct pieces or logical checkpoints then you may consider splitting it into multiple PRs. But if you are able to keep it simple, then we can do it here |
| - jupyterlab-myst>=2.0.0 | ||
| - myst-nb>=1.0.0 | ||
| - polars>=1.14.0 | ||
| - fftw>=3.3 | ||
| - pyfftw>=0.15.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.
Add fftw and pyfftw to pyproject.toml as well (and Github Actions need to install the dependencies via pixi/conda ??)
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.
Note that fftw and pyfftw already exists in pyproject.toml:
Lines 89 to 90 in ce05903
| fftw = "*" | |
| pyfftw = "*" |
I only added it to the pixi section because it can be easily installed via conda. I don't think the same is true for pip
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.
I remember our previous conversation regarding FFTW and the fact that it cannot be installed via pip since it is not a Python library. My intention was to just install pyFFTW and see if we can test it in one or two platforms if they already have FFTW. I think that is pointless! It's time to revise GitHub Actions (to make sure all dependencies are installed properly and tests can pass in all 3 platforms with full coverage)
|
@NimaSarajpoor It's not clear why we need to change
Frankly, I'm not following this comment and why it needs to be changed. |
The issue was exposed when I added pyfftw-based sdp, which is implemented using class. The class has the method Lines 26 to 33 in ce05903
Sounds good. I will create an issue for |
Given that this is an extreme case, it almost feels like it merits its on P.S. I can also accept the criticism (for myself) if this file was written in a way that lacked clarity and if it felt hard to modify 😅 |
Let's continue this conversation in the new issue #1123. |
See #1111
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