Skip to content

Commit

Permalink
Apply suggestions from juliaformatter
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
josephmckinsey and github-actions[bot] authored Jan 16, 2025
1 parent df29824 commit 6544aeb
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions docs/src/tutorials/how_do_i_add_outage_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,13 @@ recovery_probability = [0.1, 0.1, 0.2, 0.3, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0

# Your resolution and length must match the other SingleTimeSeries in your System.
resolution = Dates.Minute(5)
timestamps = range(DateTime("2020-01-01T08:00:00"); step = resolution, length = 24)
timestamps = range(DateTime("2020-01-01T08:00:00"); step=resolution, length=24)
outage_timearray = TimeArray(timestamps, outage_probability)
outage_time_series = SingleTimeSeries(;
name = "outage_probability",
data = outage_timearray,
)
outage_time_series = SingleTimeSeries(; name="outage_probability", data=outage_timearray)

recovery_timearray = TimeArray(timestamps, recovery_probability)
recovery_time_series = SingleTimeSeries(;
name = "recovery_probability",
data = recovery_timearray,
)
recovery_time_series =
SingleTimeSeries(; name="recovery_probability", data=recovery_timearray)

# Here we assume you have a system named sys
PSY.add_time_series!(sys, transition_data, outage_time_series)
Expand Down

0 comments on commit 6544aeb

Please sign in to comment.