Skip to content

Alpha chain list + condense_alpha_list functionality#19

Merged
shawest merged 5 commits intoshawest:masterfrom
mpiercy827:alpha-chain-list-plus-condense
Feb 13, 2026
Merged

Alpha chain list + condense_alpha_list functionality#19
shawest merged 5 commits intoshawest:masterfrom
mpiercy827:alpha-chain-list-plus-condense

Conversation

@mpiercy827
Copy link
Contributor

This pull request continues to migrate code into the neucbot.py package with the following changes:

  • Introduces a new alpha.ChainList class which can be used to handle creation of alpha lists from Chains/*.dat files.
  • Migrates the condense_alpha_list function from neucbot.py to neucbot/alpha.py. This includes a minor performance improvement by generating the condensed alpha list in a more efficient manner. Previously, for each step in the range of (0, max_alpha), the entire list of alpha energies would be iterated over for each step to find the correct cumulative intensity. This PR keeps track of the current cumulative intensity with an incrementing index so that the alpha list doesn't need to be iterated over each time.

This commit moves the loadChainAlphaList function from neucbot.py to
neucbot/alpha.py and adds unit tests for this code.
This commit replaces the condense_alpha_list function with the
AlphaList#condense() function in neucbot.py.
This change is intentional and is introduced to maintain parity with the
current state of code in neucbot.py. Without this change, the calculated
values differ significantly and the integration tests fail.
@mpiercy827 mpiercy827 marked this pull request as ready for review February 13, 2026 17:21
@shawest shawest merged commit 736706d into shawest:master Feb 13, 2026
1 check passed
@mpiercy827 mpiercy827 deleted the alpha-chain-list-plus-condense branch February 13, 2026 18:14
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.

2 participants