Skip to content

Fixing MF7/MT2 key name: LHTR → LTHR#37

Merged
paulromano merged 1 commit intopaulromano:mainfrom
Ramzy1990:main
Mar 4, 2026
Merged

Fixing MF7/MT2 key name: LHTR → LTHR#37
paulromano merged 1 commit intopaulromano:mainfrom
Ramzy1990:main

Conversation

@Ramzy1990
Copy link
Contributor

The parsed dictionary key for the thermal elastic scattering law flag in MF7/MT2 is currently stored as LHTR in the endf-python package. The correct ENDF-6 variable name is LTHR (Law for THermal elastic Reaction), as defined in the ENDF-6 Formats Manual (ENDF-102, Section 7.2) and used consistently in NJOY2016, PREPRO, and other processing codes.

This typo causes downstream code that looks up ['LTHR'] to silently get a default of 0 (of course depending on how the code is setup), making it appear that no elastic data is present even when the file correctly contains LTHR data.

The parsed dictionary key for the thermal elastic scattering law flag in MF7/MT2 is currently stored as LHTR in the endf-python package.  The correct ENDF-6 variable name is LTHR (Law for THermal elastic Reaction), as defined in the ENDF-6 Formats Manual (ENDF-102, Section 7.2) and used consistently in NJOY2016, PREPRO, and other processing codes.

This typo causes downstream code that looks up sec['LTHR'] to silently get a default of 0 (of course depending on how the code is setup), making it appear that no elastic data is present even when the file correctly contains LTHR data.
Copy link
Owner

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

Thanks! Mea culpa...

@paulromano paulromano merged commit 44e251f into paulromano:main Mar 4, 2026
3 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