making use of sum_rules in endf package (#3799)

This commit is contained in:
Jonathan Shimwell 2026-02-12 11:11:28 +01:00 committed by GitHub
parent 26b13083f3
commit 8d0fe6c71d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,6 +12,7 @@ import re
from .data import gnds_name
from .function import Tabulated1D
from endf.incident_neutron import SUM_RULES
from endf.records import (
float_endf,
py_float_endf,
@ -63,24 +64,6 @@ _SUBLIBRARY = {
20040: 'Incident-alpha data'
}
SUM_RULES = {1: [2, 3],
3: [4, 5, 11, 16, 17, 22, 23, 24, 25, 27, 28, 29, 30, 32, 33, 34, 35,
36, 37, 41, 42, 44, 45, 152, 153, 154, 156, 157, 158, 159, 160,
161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
173, 174, 175, 176, 177, 178, 179, 180, 181, 183, 184, 185,
186, 187, 188, 189, 190, 194, 195, 196, 198, 199, 200],
4: list(range(50, 92)),
16: list(range(875, 892)),
18: [19, 20, 21, 38],
27: [18, 101],
101: [102, 103, 104, 105, 106, 107, 108, 109, 111, 112, 113, 114,
115, 116, 117, 155, 182, 191, 192, 193, 197],
103: list(range(600, 650)),
104: list(range(650, 700)),
105: list(range(700, 750)),
106: list(range(750, 800)),
107: list(range(800, 850))}
def get_evaluations(filename):
"""Return a list of all evaluations within an ENDF file.