Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison of FENDL3.2b with FENDL2.0 for select isotopes and reactions. #70

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Changing zero prepending to zero appending.
  • Loading branch information
Eitan Weinstein committed Aug 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 1f8e2195d0f88d5483fee17985f1bb052c78e6d9
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -73,9 +73,9 @@ def args():

return parser.parse_args()

def prepend_with_zeros(cross_sections):
def append_with_zeros(cross_sections):
"""
Include zeroes into the beginning of a list such that the total length of
Include zeroes into the end of a list such that the total length of
of the list is 175, corresponding to the Vitamin-J group structure.

Arguments:
@@ -84,13 +84,12 @@ def prepend_with_zeros(cross_sections):

Returns:
cross_sections (list): Potentially modified list of cross sections, with
zeroes prepended to bring the length of the list to 175.
zeroes appended to bring the length of the list to 175.
"""

current_length = len(cross_sections)
zeros_needed = 175 - current_length
cross_sections = [0] * zeros_needed + cross_sections

cross_sections = cross_sections + [0] * zeros_needed
return cross_sections


@@ -126,7 +125,7 @@ def fendl3_cross_sections(gendf_data_csv, element, A, emitted_particles):
single_isotope_reaction = single_isotope_data[
single_isotope_data['Emitted Particles'] == emitted_particles
]
cross_sections = prepend_with_zeros(list(
cross_sections = append_with_zeros(list(
single_isotope_reaction['Cross Sections'].apply(literal_eval)
)[0])

@@ -162,7 +161,7 @@ def fendl2_cross_sections(element, A, emitted_particles, dir = '.'):
if value:
cross_sections.append(float(value))

return np.array(prepend_with_zeros(cross_sections))
return np.array(append_with_zeros(cross_sections))

def replace_with_greek(emitted_particles):
"""