-
Notifications
You must be signed in to change notification settings - Fork 0
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
[13-1, 14] Change definition of scaling factor alpha
, add center and approximations for Hermite functions, add Fourier transform utility functions
#15
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* DOC: - added Python versions and `black` code style to `README` * DOC: - added `isort` badge to `README` * TST: - added `--no-jit`-flag to `pytest` to enable proper coverage of Numba functions * tmp: - first test of CI with coverage report ? * BUG: - fixed failure of `pytest-xdist` and `pytest-cov` in GitHub CI (works locally) ? * BUG: - fixed accidentally placed `\` for `./tests` in coverage CI action ? * BUG: - added codecov to CI pipeline ? * TST: - tried to readd `pytest-xdist` for coverage reports ? * wip: - reset example Jupyter notebook number 3 * MAINT: - made `_get_num_workers` a function of the `_utils`-model TST: - increased coverage to 100% by testing `np.float32` x-values for the Hermite functions was well as super negative numbers of requested workers * DOC: - added setup, installation, and development instructions to `README` * DOC: - switched back from `README.rst` to `README.md` BLD: - made CI pipeline push actions apply to the main branch only
- added additional scripts checks to GitHub CI - made all tools cause actual failures rather than just printing test output ? - broke CI on purpose, by badly formatting `auxiliary_scripts\02_hermite_functions_largest_extremum.py` and `src\robust_hermite_ft\hermite_functions\_c_hermite.pyx`
MothNik
added
✍️ documentation
Improvements or additions to documentation
💪 enhancement
New feature or request
✅❌ tests
Everything related to maintaining or improving tests and coverage
💥 breaks old funcionality
Changes that break old functionality
labels
Jul 30, 2024
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
- Hermite functions now support all kinds of real numeric scalars/Arrays as `x`-values, integer scalars as `n`-values, and real numeric scalars for `alpha` and `x_center` after making the input validation way more relaxed and smarter TST: - test for Hermite function input validation now covers Python and Numpy scalars individually and on top of that also includes Pandas series and Python Arrays - test for data link to original `x` in Hermite functions now evaluates dynamically whether memory is shared by checking if changes in the copy/view are reflected in the original - added a completely new test set whether the Hermite functions yield the same results for all different kinds of `x`-values, `n`-values, `alpha`- and `x-center` values
MothNik
commented
Jul 30, 2024
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.
Checked on top of CI checks
MothNik
changed the title
[13-1, 14] Change definition of scaling factor
[13-1, 14] Change definition of scaling factor Jul 30, 2024
alpha
and add center and approximations for Hermite functionsalpha
, add center and approximations for Hermite functions, add Fourier transform utility functions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
💥 breaks old funcionality
Changes that break old functionality
✍️ documentation
Improvements or additions to documentation
💪 enhancement
New feature or request
✅❌ tests
Everything related to maintaining or improving tests and coverage
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request
💥 Breaking changes
alpha
of the dilated Hermite functions fromx / alpha
tox * alpha
which is not backwards-compatiblealpha
hermite_functions._interface
tohermite_functions._func_interface
🦾 Features/Enhancements
adds the module
fourier_transform._fft_utils
(with test suite) for an object-oriented interface to Fourier transforms as well as easy conversions between discrete and continuous Fourier transformsimplements support for all kinds of
x
,n
,alpha
, andx_center
for the Hermite functions by making the type checking less rigid (especially worth to mention are Pandas Series and Python Array support forx
)makes tests for type handling of input validation for Hermite functions more dynamic and safer
adds an
x_center
to the Hermite functions to shift them in x-direction and adds it to documentation and testsadds
hermite_functions._approximations
(with test suite) that offers 3 functions to easily approximate the positions ofof the first 100 000 Hermite functions together with scripts (developer-only (see ✍️ Documentation)) to generate the reference data
✍️ Documentation
_approximations
module🪛 Internal changes
jit
-compile the existing NumPy-function insteadhermite_functions._validate