Skip to content

Commit

Permalink
add utils for is_time_variant
Browse files Browse the repository at this point in the history
Co-authored-by: jd-lara <[email protected]>
  • Loading branch information
rodrigomha and jd-lara committed Dec 4, 2024
1 parent d9a2a01 commit e8c6818
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/powersystems_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ function _get_piecewise_incrementalcurve_per_system_unit(
return PSY.PiecewiseStepData(x_coords_normalized, y_coords_normalized)
end

function is_time_variant(cost_function::PSY.FuelCurve{PSY.PiecewisePointCurve})
return isa(PSY.get_fuel_cost(cost_function), IS.TimeSeriesKey)
end

function get_deterministic_time_series_type(sys::PSY.System)
time_series_types = IS.get_time_series_counts_by_type(sys.data)
existing_types = Set(d["type"] for d in time_series_types)
Expand Down

0 comments on commit e8c6818

Please sign in to comment.