-
Notifications
You must be signed in to change notification settings - Fork 2
27 arithmetic operations for parameters #43
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
Merged
damskii9992
merged 72 commits into
develop
from
27-Arithmetic-operations-for-Parameters
Aug 14, 2024
Merged
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
a296410
__add__ method in Parameter and DescriptorNumber
damskii9992 5f0c8a4
__sub__ methods added to Parameter and DescriptorNumber
damskii9992 0245578
__mul__ added to Parameter and DescriptorNumber
damskii9992 076c800
Allow additions between similar dimensions
damskii9992 f26644d
Allow addition with scalars
damskii9992 ac3c935
add tests for additions
damskii9992 67d6011
subtraction with scalars
damskii9992 85449b4
tests for subtraction
damskii9992 f6763ef
multiplication with scalars
damskii9992 f543f71
tests for multiplication plus cleanup
damskii9992 4b8c0af
Divion methods added
damskii9992 587f653
account for unit cancellation in base_unit method
damskii9992 ffae7df
account for multiplication with 0
damskii9992 0a96a87
Add unittests for divisions
damskii9992 dc617bf
raise ZeroDivisionError
damskii9992 f553ce7
add __pow__ methods
damskii9992 8e1a111
Test __pow__ methods
damskii9992 76bd956
add __neg__ and __abs__ methods
damskii9992 9394974
Add tests for __neg__ and __abs__
damskii9992 10e8ab4
ruff
damskii9992 c0e4110
Merge branch 'develop' into 27-Arithmetic-operations-for-Parameters
damskii9992 32e47c8
Updated ruff fix
damskii9992 73ba052
Merge branch '27-Arithmetic-operations-for-Parameters' of https://git…
damskii9992 a0ff7dc
Fix unit prefixes with "e" numbers
damskii9992 6f3ee8e
minor code consistency, updated test
henrikjacobsenfys 180a6ee
Change name of new_value
henrikjacobsenfys ccfaa2c
Add comments about DescriptorNumber
henrikjacobsenfys 817fae2
Changed == to np.isclose
henrikjacobsenfys 0cd009a
Added calls to convert_unit in initialize to ensure unit consistency
henrikjacobsenfys 219d93e
Minor consistency fixes
henrikjacobsenfys 3c972f7
Changed names to be unique_name
henrikjacobsenfys 7edbadb
Auto generate names as unique_name for arithmetic operations
henrikjacobsenfys 182983e
Updated tests
henrikjacobsenfys 6a7a69f
remove unused import
henrikjacobsenfys e050e0e
Fix commit mistakes and clean tests
damskii9992 ffbe575
Fix mistakes from Henrik
damskii9992 ba50aa0
Merge branch 'develop' into 27-Arithmetic-operations-for-Parameters
damskii9992 b3ba8ae
__add__ method in Parameter and DescriptorNumber
damskii9992 e6ce024
__sub__ methods added to Parameter and DescriptorNumber
damskii9992 723cf41
__mul__ added to Parameter and DescriptorNumber
damskii9992 781fd1d
Allow additions between similar dimensions
damskii9992 3c29e7b
Allow addition with scalars
damskii9992 4803432
add tests for additions
damskii9992 c91732b
subtraction with scalars
damskii9992 549b9a2
tests for subtraction
damskii9992 23b275b
multiplication with scalars
damskii9992 d6bb54c
tests for multiplication plus cleanup
damskii9992 e2d59eb
Divion methods added
damskii9992 9bb730a
account for unit cancellation in base_unit method
damskii9992 e0c4017
account for multiplication with 0
damskii9992 e3751db
Add unittests for divisions
damskii9992 0b73c24
raise ZeroDivisionError
damskii9992 e28732b
add __pow__ methods
damskii9992 128e6c0
Test __pow__ methods
damskii9992 871d153
add __neg__ and __abs__ methods
damskii9992 4b5d6d5
Add tests for __neg__ and __abs__
damskii9992 1fe5625
Updated ruff fix
damskii9992 d5aab7c
Fix unit prefixes with "e" numbers
damskii9992 8f88319
minor code consistency, updated test
henrikjacobsenfys 8eebe74
Change name of new_value
henrikjacobsenfys 02b0b3f
Add comments about DescriptorNumber
henrikjacobsenfys 9c88ed7
Changed == to np.isclose
henrikjacobsenfys 0e3dba3
Added calls to convert_unit in initialize to ensure unit consistency
henrikjacobsenfys 872aea3
Minor consistency fixes
henrikjacobsenfys a99be72
Changed names to be unique_name
henrikjacobsenfys a093af0
Auto generate names as unique_name for arithmetic operations
henrikjacobsenfys b701d45
Updated tests
henrikjacobsenfys 5a11067
remove unused import
henrikjacobsenfys 212da63
Fix commit mistakes and clean tests
damskii9992 7571f7f
Fix mistakes from Henrik
damskii9992 c567df8
Merge branch '27-Arithmetic-operations-for-Parameters' of https://git…
damskii9992 512b03a
Fix rebase error
damskii9992 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.