Skip to content

Makes make_ace_lib more flexible#188

Merged
ChasingNeutrons merged 13 commits intoCambridgeNuclear:mainfrom
valeriaRaffuzzi:script
Feb 18, 2026
Merged

Makes make_ace_lib more flexible#188
ChasingNeutrons merged 13 commits intoCambridgeNuclear:mainfrom
valeriaRaffuzzi:script

Conversation

@valeriaRaffuzzi
Copy link
Member

Solves issue #178 : modifies the script make_ace_lib to be recursive. It now requires a suffix to look for files and a base folder.

To get extra help run the script without any arguments. In the line above, <output> is the file that
will be created; <MODE> can be either ``CE`` for continuous energy neutron data cards and ``SAB`` for
thermal scattering S(α,β) cards; <extension_suffix> is the final part of the extension that is common to
all the ace files of interest; <path_to_base_folder> is the path to the folder than contains the ace
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I would add the two common examples for ease of use (i.e., "often this is 'ace' or, for some newer evaluations, 'nc' "). I guess there's also a question of what if the file doesn't have that suffix? For example, we used to be able to process the sssth1 file for S(a,b) provided with Serpent. Would that still work now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good points! I made it a bit more general and now the search keyword doesn't have to be in the extension at all (I don't know why I was limiting that before!). Now it should be more flexible and all this should be addressed - I tested on several combinations including the Serpent sssth1 file.

@ChasingNeutrons ChasingNeutrons merged commit b07a2c3 into CambridgeNuclear:main Feb 18, 2026
6 checks passed
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