Skip to content

Commit c53de08

Browse files
Eitan Shai WeinsteinEitan Shai Weinstein
authored andcommitted
Resolving isomer mishandling
1 parent 00c7151 commit c53de08

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

tools/ALARAJOYWrapper/reaction_data.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -329,17 +329,6 @@ def append_to_compiled_lib(
329329
with open(decay_file, 'r') as f:
330330
lines = f.readlines()
331331

332-
# Remove TEND record from individual files for valid compilation except
333-
# for final file in iteration. TEND flags needed initially for individual
334-
# UKDD file restructuring to meet ALARA readable format, but cannot be
335-
# present in the middle of a compiled decay file containing multiple
336-
# nuclides
337-
if not last_file and decay_lib_type == 'ukdd':
338-
lines = [
339-
line[:81] for line in lines
340-
if TEND_RECORD not in line
341-
]
342-
343332
with open(compiled_file, 'a') as f:
344333
f.writelines(lines)
345334

@@ -405,7 +394,7 @@ def compile_decay_lib(decay_dir, decay_lib_type, dir):
405394
if parsed_file:
406395
decay_data = parsed_file[8][457]
407396
decay_data['filepath'] = ukdd_file
408-
kza = int(f'{int(decay_data['ZA'])}{int(decay_data['LISO'])}')
397+
kza = int(decay_data['ZA']) * 10 + int(decay_data['LISO'])
409398
all_nucs[kza] = decay_data
410399

411400
for i, kza in enumerate(sorted(all_nucs)):

0 commit comments

Comments
 (0)