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 introduces several significant changes to the
brainunit
package, including the addition of FFT functionality, a new hash method, and the inclusion of copyright headers in various test files.New FFT Functionality:
brainunit
with imports and updated__all__
to includefft
inbrainunit/__init__.py
. [1] [2]brainunit/fft
:brainunit/fft/__init__.py
: Added FFT-related imports and__all__
definitions.brainunit/fft/_fft_change_unit_test.py
: Added tests for FFT change unit functions using parameterized tests.brainunit/fft/_fft_keep_unit.py
: Implementedfftshift
andifftshift
functions.brainunit/fft/_fft_keep_unit_test.py
: Added tests for FFT keep unit functions using parameterized tests.Enhancements to
brainunit/_base.py
:__hash__
method toUnit
class to enable hashing based on unit attributes.Copyright Headers:
brainunit/lax/_lax_accept_unitless_test.py
brainunit/lax/_lax_array_creation_test.py
brainunit/lax/_lax_change_unit_test.py
brainunit/lax/_lax_keep_unit_test.py
brainunit/lax/_lax_linalg_test.py
brainunit/lax/_lax_remove_unit_test.py
brainunit/lax/_misc_test.py
brainunit/math/_fun_keep_unit_test.py