NatLabRockies / NatLabRockies/REopt_API

Length of day and month outage probability arrays

Open
#207 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
125
Forks
68
Avg merge
1d 21h
Merged PRs (30d)
1

Description

Description

resillience_stats: The length of the outage_durations array does not match the length of each hour and month in probs_of_surviving_by_hour_of_the_day and probs_of_surviving_by_month respectively. I suspect this is a bug related to 1-indexing of time steps.

In an example (run_uuid 2c65dede-f009-4ffc-9695-a832a9898887) outage_durations is a list that is 6826 long, probs_of_surviving is 6826 long, probs_of_surviving_by_hour_of_the_day is 24 arrays each 6827 long and probs_of_surviving_by_month is 12 arrays each 6827 long.

Resolution

This may be ok, at the least better documentation is needed to explain why the length are different.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the code that produces resillience_stats and the outage_durations, probs_of_surviving_by_hour_of_the_day, and probs_of_surviving_by_month fields. Reproduce the discrepancy with run_uuid 2c65dede-f009-4ffc-9695-a832a9898887, determine whether the extra element is an indexing bug or intended behavior, and make the output lengths or documentation consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.