Skip to content
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

Use cached time series UUID #1169

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/parameters/update_container_parameter_values.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
components = get_available_components(device_model, get_system(model))
ts_uuids = Set{String}()
for component in components
ts_uuid = string(IS.get_time_series_uuid(U, component, ts_name))
ts_uuid = _get_ts_uuid(attributes, PSY.get_name(component))
if !(ts_uuid in ts_uuids)
ts_vector = get_time_series_values!(
U,
Expand Down Expand Up @@ -87,7 +87,7 @@
initial_forecast_time = get_current_time(model) # Function not well defined for DecisionModels
horizon = get_time_steps(get_optimization_container(model))[end]
ts_name = get_time_series_name(attributes)
ts_uuid = string(IS.get_time_series_uuid(U, service, ts_name))
ts_uuid = _get_ts_uuid(attributes, PSY.get_name(service))

Check warning on line 90 in src/parameters/update_container_parameter_values.jl

View check run for this annotation

Codecov / codecov/patch

src/parameters/update_container_parameter_values.jl#L90

Added line #L90 was not covered by tests
ts_vector = get_time_series_values!(
U,
model,
Expand Down Expand Up @@ -120,7 +120,7 @@
ts_name = get_time_series_name(attributes)
ts_uuids = Set{String}()
for component in components
ts_uuid = string(IS.get_time_series_uuid(U, component, ts_name))
ts_uuid = _get_ts_uuid(attributes, PSY.get_name(component))
if !(ts_uuid in ts_uuids)
# Note: This interface reads one single value per component at a time.
value = get_time_series_values!(
Expand Down
Loading