Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2023 Paul Romano
Copyright (c) 2023-2025 Paul Romano

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from importlib.metadata import version as metadata_version

project = 'ENDF Python Interface'
copyright = '2023, Paul Romano'
copyright = '2023-2025, Paul Romano'
author = 'Paul Romano'

release = metadata_version('endf')
Expand Down
2 changes: 1 addition & 1 deletion src/endf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from importlib.metadata import version, PackageNotFoundError
Expand Down
2 changes: 1 addition & 1 deletion src/endf/ace.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 OpenMC contributors and Paul Romano
# SPDX-FileCopyrightText: 2023-2025 OpenMC contributors and Paul Romano
# SPDX-License-Identifier: MIT

"""This module is for reading ACE-format cross sections. ACE stands for "A
Expand Down
2 changes: 1 addition & 1 deletion src/endf/data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

import re
Expand Down
2 changes: 1 addition & 1 deletion src/endf/fileutils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

import os
Expand Down
2 changes: 1 addition & 1 deletion src/endf/function.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 OpenMC contributors and Paul Romano
# SPDX-FileCopyrightText: 2023-2025 OpenMC contributors and Paul Romano
# SPDX-License-Identifier: MIT

from collections.abc import Iterable
Expand Down
2 changes: 1 addition & 1 deletion src/endf/incident_neutron.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from __future__ import annotations
Expand Down
6 changes: 3 additions & 3 deletions src/endf/material.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# SPDX-FileCopyrightText: 2023 OpenMC contributors and Paul Romano
# SPDX-FileCopyrightText: 2023-2025 OpenMC contributors and Paul Romano
# SPDX-License-Identifier: MIT

"""Module for parsing and manipulating data from ENDF files.

All the classes and functions in this module are based on the ENDF-102 report
titled "ENDF-6 Formats Manual: Data Formats and Procedures for the Evaluated
Nuclear Data Files". The version from January 2018 can be found at
https://doi.org/10.2172/1425114.
Nuclear Data Files". The version from September 2023 can be found at
https://doi.org/10.2172/2007538.

"""
import io
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf12.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf13.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf14.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf15.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf23.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf26.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf27.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf28.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf33.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf34.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf40.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf5.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from abc import ABC
Expand Down
7 changes: 4 additions & 3 deletions src/endf/mf6.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down Expand Up @@ -120,11 +120,12 @@ def dict_from_endf(file_obj: TextIO) -> dict:
for i in range(NE):
items, values = get_list_record(file_obj)
_, E_i, LANG, _, NW, NL = items
dist = {'LANG': LANG, 'NW': NW, 'NL': NL}
dist = {'LANG': LANG, 'NW': NW, 'NL': NL, 'A_l': np.asarray(values)}
data['E'][i] = E_i
data['A_l'] = np.asarray(values)
data['distribution'].append(dist)

return data


class ChargedParticleElasticScattering:
def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf7.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf8.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/mf9.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Paul Romano
# SPDX-FileCopyrightText: 2023-2025 Paul Romano
# SPDX-License-Identifier: MIT

from typing import TextIO
Expand Down
2 changes: 1 addition & 1 deletion src/endf/reaction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 OpenMC contributors and Paul Romano
# SPDX-FileCopyrightText: 2023-2025 OpenMC contributors and Paul Romano
# SPDX-License-Identifier: MIT

from __future__ import annotations
Expand Down