ukaea / ukaea/PROCESS

`stresscl` refactor

Open
#4,588 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Refactor
Dominant language
Python
Stars
71
Forks
27
Avg merge
2d 18h
Merged PRs (30d)
33

Description

This needs a refactor because there's too much going on for 1 function

Possibly this will help with refactoring while keeping speed up @nb.njit(cache=True, inline="always")

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

Start by locating the stresscl function and reading its full implementation to identify the responsibilities currently combined in one function. Preserve its existing behavior and check that the refactoring does not reduce execution speed, including the suggested @nb.njit(cache=True, inline="always") approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.