Sienna-Platform / Sienna-Platform/InfrastructureOptimizationModels.jl
Generalize helpers for other axes
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 1
- Forks
- 0
- Avg merge
- 8h 51m
- Merged PRs (30d)
- 9
Description
Consider generalizing our helpers to be compatible with containers with different axes: replace the pair of args name::String, t::Int and container[name, t] with ix::Tuple and container[ix...]. For example, outages are indexed by (outage_id, name, t). [However, there's not enough code reuse possible for outages alone such that it's clearly worth changing.]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the helpers that take name::String and t::Int, along with their container[name, t] call sites, and inspect how outage indexing differs. Determine whether tuple-based indexing provides useful reuse beyond outages; done means a justified generalization with existing helper behavior preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100