Skip to content

Conversation

@mihlema
Copy link
Collaborator

@mihlema mihlema commented Feb 28, 2025

In order to account for time-dependent outage rates (e.g., influenced by weather, see for example: Murphy - A time-dependent model of generator failures and recoveries captures correlated events and quantifies temperature dependence, it'd be nice to be able to support MTTF and MTTR as timeseries parameters. The adaptation for this script supports this, with the caveat that timeseries currently only supports Float values. The script will treat Floats as number of Days for respective parameters.

Other than minor update to write_parameter function (was outdated) and added the keyword "on_conflict"=replace. The latter one seemed reasonable as I was testing and noticed that I created "more and more" outages, as the script would append the timeseries, leading to erroneous timeseries for forced outages. I left it as an optional keyword, In case e.g. do want to append an existing timeseries (e.g., originally created for year x, and now appended for year y, as long as they don't overlap)

Fixes # (no issue addressed)

Checklist before merging

  • Documentation is up-to-date
  • Unit tests have been added/updated accordingly - no unit test available for this script yet. This should however be established in the future
  • Code has been formatted according to SpineOpt's style - probably not yet, there's a few comments reviewers need to check out first before
  • Unit tests pass (N/A)

…d_outage and time-to-repair

- added "on_conflict = replace" to prevent eroneous timeseries
@mihlema mihlema requested a review from manuelma February 28, 2025 22:12
@mihlema mihlema marked this pull request as draft March 12, 2025 17:41
@DillonJ
Copy link
Contributor

DillonJ commented May 23, 2025

@mihlema This would be great and it's nice that you're complimenting the existing forced outage functionality. It would be great if we could fix the conflicts and merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants