-
Notifications
You must be signed in to change notification settings - Fork 81
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
Weird behavior of get_time_series_values
#758
Comments
The component is required because the user may be using the
If you already have the time series instance and aren't using We could consider adding
Secondly, we should add a check for the case you mentioned to ensure that the component actually contains the passed time_series instance. |
Thanks for the clarification! |
On the |
No, that's what you would have to do. It's even more cumbersome for subtypes of The change I mentioned above would be the simplification we would make. |
Yes, that would be convenient. However, I think it could also cause some confusion. Since |
I think we should document this behavior better to avoid annoyances from the users. |
@daniel-thom @jd-lara Think the best way to resolve this is with this check. Has it been implemented? We typically haven't taken approach of documenting how not to use a function, and otherwise, I think the docstring improvements for these functions in IS has resolved this issue, so we could close this. |
agree we should close. It is also stale for 4 years almost. |
If we have two components
load1
andload2
, and both have a time series called"load"
.The following will return the values of time series in load1:
I imagine this should error, since
load_ts
is not inload2
, but inload1
.Also, wouldn't it be convenient to have a method
get_time_series_values
that receives just the time series, without the component? If the goal is to just return the values of the specified time series, then the component shouldn't be relevant (we already specified the component when we got the time series).The text was updated successfully, but these errors were encountered: