-
Notifications
You must be signed in to change notification settings - Fork 22
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
Deterministic Type Hierarchy #378
Comments
Deterministic
, a concrete type, sometimes also refers to DeterministicSingleTimeSeries
, a different concrete type. I don't know about the typical user, but this definitely confused me before it was explained to me. We would have to think about how to resolve this without breaking existing code. For now we'll keep it as-is but at some point restore the behavior that you can pass abstract types to get_time_series
; when that is done, there is a change that can be reverted in PSY.
We've resolved to not make any backwards-incompatible changes due to this right now, but for the next major version, here is my proposal: Currently we have this type hierarchy:
and these behaviors:
I propose to make the following renames:
and have the following behaviors:
This proposal ends the abuse of the type hierarchy and the hard-coding that requires. The cost in change to the user interface is either practically zero, if the constructor alias is created, or small if it is not. The benefit is in more elegant and maintainable code and an intuitive connection between the type hierarchy and the time series query matching spec. |
I don't love how we special-case that
Deterministic
, a concrete type, sometimes also refers toDeterministicSingleTimeSeries
, a different concrete type. I don't know about the typical user, but this definitely confused me before it was explained to me. We would have to think about how to resolve this without breaking existing code. For now we'll keep it as-is but at some point restore the behavior that you can pass abstract types toget_time_series
; when that is done, there is a change that can be reverted in PSY. See #349 (comment). Broken out of #356.The text was updated successfully, but these errors were encountered: