-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Remove deprecated setter methods on Frequency #878
Conversation
Do we need the unit to be mutable? |
I think yes. Often the unit is set in Hz and one would like to change to MHz/GHz to get nice plot tick axis labels. |
Ok, this is the unit for representation. The underlying frequency vector stays the same after change which is fine. |
We've still the In addition the |
Could it just return a new Frequency with those updated values? |
The tests pass because the frequencies are constructed using We can modify the The case of |
I will remove the We could add deprecation warnings to the methods that modify the Frequency (e.g. the |
I think it is a good idea to add a deprecation warning. Then make Frequency immutable for version 1.0 ? |
What will we do with the We can deprecate the
|
Good question. Personaly, I often have to change the unit to get nicer print or plot. So I think a way to change the unit is needed, but I'm biased. |
anyone else's advice? What should we do with this? |
@jhillairet I updated the description of the PR to remove deprecated setter methods. The |
Remove two deprecated setter methods on the Frequency object.
Note: the Frequency object is now mostly immutable except for the
unit
and a few public methods (e.g.round_to
).