Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Deduplicate process maps by year

Open
#874 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
backend

Research direction

No source file, entry point, or test is named. Start by locating where process maps for availabilities, flows, and parameters are created, then read the assumptions in #845 and #846 and evaluate the rangemap crate. Done means equivalent year lookups work without creating one map copy for every possible commissioning year.

Written by the indexing model from the issue text.

Description

Currently we create process maps (availabilities, flows and parameters) for every possible year a process can be commissioned in upfront, which will be a problem when we get to #845 and #846, as at that point the number of possible years for a process could be thousands or even billions (assuming we treat missing lower and upper limits as being 0 and u32 max, respectively).

We could work around this partially, by capping the range of possible years, but it would be better to just not create many copies of these maps in the first place.

I think we should use the rangemap crate so we can store values for ranges of years.

Dominant language
Rust
Stars
8
Forks
5
Avg merge
11h 31m
Merged PRs (30d)
33

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.

More from EnergySystemsModellingLab/MUSE2

All issues in EnergySystemsModellingLab/MUSE2

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.