Skip to content

Refactor: Improve robustness and clarity of grant management scripts#101

Open
loigaak wants to merge 1 commit into
numfocus:mainfrom
loigaak:fix/issue-31
Open

Refactor: Improve robustness and clarity of grant management scripts#101
loigaak wants to merge 1 commit into
numfocus:mainfrom
loigaak:fix/issue-31

Conversation

@loigaak

@loigaak loigaak commented May 31, 2026

Copy link
Copy Markdown

This PR introduces several improvements to the grant management scripts:

  • scripts/sdg_utils.py: Enhances the parse_issue function to prevent a potential AttributeError if the 'Amount requested' field is missing from an issue body. It also improves efficiency by using a set for label lookups.
  • scripts/allocate_funds.py: Corrects the default type for the --funding_limit argument from a string to an integer, aligning with its type=int specification.
  • scripts/project_selection.py: Refactors the select_proposals_to_fund function by removing the redundant temp_budget_remaining variable, improving code clarity and maintainability without altering the existing budget allocation logic.

These changes improve the overall robustness and readability of the grant processing tools.

Fixes #31 (by improving the underlying system that processes grant proposals like the one described in #31)

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.

Sphinx extension for fortran documentation

1 participant