-
Notifications
You must be signed in to change notification settings - Fork 4
Abstract base class for SphericalHarmonicDefiniton and -Audio #218
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
a33dfa0 to
c927ce2
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.
Thanks, I found one redundancy that can maybe be removed (see comment) and have two questions:
Is testing not implemented because that done as part of the SH class?
Child classes which should not allow setting properties will need to overload the respective setter property.
Would it make sense to have two abstact base clases? One containing the properties and on the getter. This might reduce redundancy in case multiple derived classes only require getters.
I've thought about it, but then it would require re-writing the entire setter and checking logic to the state we had before including n_max in the base class if I remember correctly. At this point I don't think it makes sense to go back on that again. |
f-brinkmann
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.
Thanks for checking!
sikersten
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.
Thank you! I only have two minor comments, otherwise approved.
Changes proposed in this pull request: