-
Notifications
You must be signed in to change notification settings - Fork 4
Refactor operations #184
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
Refactor operations #184
Conversation
rprospero
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.
Looks good, but sasdata/transforms/operation.py seems to be redundant, unless I'm missing something
sasdata/transforms/operation.py
Outdated
| from sasdata.quantities.quantity import Quantity | ||
|
|
||
|
|
||
| class Operation: |
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 might be dense, but this seems to be a duplicate of the Operation class in sasdata/quantities/quantity.py. Do we need this class?
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.
This was included in the original branch which is why I left it in, but looking at it now I agree with you that it can be removed.
c8ae0ac to
6aea9e1
Compare
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.
No quality gates enabled for this code.
See analysis details in CodeScene
Quality Gate Profile: Custom Configuration
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.
This PR refactors the operations code and adds tests, in preparation for adding exponential and trig functions (the original branch added only Log and Ln).
Note that many of the changes arise from ruff formatting, but these are only applied in the last commit, going up to the penultimate commit will show all of the functional code changes.