-
Notifications
You must be signed in to change notification settings - Fork 3
[ENH] Initialize spherical harmonics from definition #249
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
Conversation
73cb668 to
eaa6f78
Compare
mberz
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.
I'd suggest to change the order of arguments (for semantic and consistency reasons), see below)
Otherwise good to go
spharpy/classes/sh.py
Outdated
| self.inverse_method = inverse_method | ||
|
|
||
| @classmethod | ||
| def from_definition(cls, coordinates, definition, inverse_method="auto"): |
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.
| def from_definition(cls, coordinates, definition, inverse_method="auto"): | |
| def from_definition(cls, definition, coordinates, inverse_method="auto"): |
I'd suggest to change the order to keep things consistent when thinking about other cases (like audio classes etc., they all will require the definition + other things)
tluebeck
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 to me. I'm just wondering if we should align the names with the init method from #247 to make clear that both have the same input. Otherwise approved
|
I was discussing the same with @mberz yesterday and we thought having shorter names in both cases would be fine ( if I remember correctly). Specifically in this case |
|
I additionally fixed a conflict with the current develop branch. |
Changes proposed in this pull request:
SphericalHarmonics.from_definitionNote: Allready uses docstring suggested in #246, which will be implemented through the same pull request also here.
Requires #246