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

Update MF7 recipe to latest changes in ENDF-102 #4

Closed
wants to merge 232 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
3eb9dc1
refactor cmd.py
gschnabel Feb 19, 2024
1d64df7
implement `compare` mode in cmd.py
gschnabel Feb 19, 2024
52cdff2
emply subparsers in cmd.py
gschnabel Feb 19, 2024
346e11e
introduce `replace` subcommand in cmd.py
gschnabel Feb 19, 2024
40d1cf2
introduce tolerance args for compare command in cmd.py
gschnabel Feb 19, 2024
aa51abc
introduce --no-backup option for `replace` subcommand in cmd.py
gschnabel Feb 19, 2024
ba7a208
print file access errors to stderr
gschnabel Feb 19, 2024
acce867
refactor: implement create_backup_file fun in cmd.py
gschnabel Feb 19, 2024
fefa487
refactor: implement determine_include fun in cmd.py
gschnabel Feb 19, 2024
725bd36
implement dunder method __int__ in EndfPath
gschnabel Feb 19, 2024
ddc4cf9
fix determine_include fun in cmd.py
gschnabel Feb 19, 2024
87ecd9d
implement `show` subcommand in cmd.py
gschnabel Feb 19, 2024
0d257ba
fix: show_content function now accepts elementary data types
gschnabel Feb 19, 2024
0fdc60c
implement `update-directory` subcommand in cmd.py
gschnabel Feb 19, 2024
65402a5
treat case of unknown OS in atomic_rename fun
gschnabel Feb 19, 2024
007ef2e
fix incorrect NWD assignment in set_description fun
gschnabel Feb 19, 2024
8de509c
implement `insert-text` subcommand in cmd.py
gschnabel Feb 19, 2024
99ed2b1
traverse keys in sorted order in compare_objects fun
gschnabel Feb 19, 2024
c8b552f
introduce arg to suppress cache info message in cmd.py
gschnabel Feb 19, 2024
d84a727
introduce `explain` subcommand in cmd.py
gschnabel Feb 19, 2024
27faa8e
fix typos in documentation
gschnabel Mar 8, 2024
143a842
enable provision of recipe parsing function
gschnabel Mar 27, 2024
fcb62b2
first prototype for endf recipe to cpp translation
gschnabel Mar 27, 2024
092c9c9
introduse register_var and unregister_var funs
gschnabel Mar 28, 2024
dd48634
include helper funs for cpp code generation
gschnabel Mar 28, 2024
14d7043
some funs for var alloc management
gschnabel Mar 28, 2024
c5851e2
make text record treatment rely on generate_code_for_varassign
gschnabel Mar 28, 2024
d2b78d5
remove unused function read_numeric_field
gschnabel Mar 29, 2024
8a1976e
remove var memory alloc stuff
gschnabel Mar 29, 2024
1300a5b
remove redundant line
gschnabel Mar 29, 2024
f164a5c
prettify code construction statements
gschnabel Mar 29, 2024
f050ff2
fix: make MAT, MF, MT available as variables
gschnabel Mar 29, 2024
4fc8c1f
fix: deal with case of a single factor that matches
gschnabel Mar 29, 2024
a3a3a4e
include cpp parsing for MF 32, 34, 40
gschnabel Mar 29, 2024
858fb55
update poetry file
gschnabel Mar 30, 2024
2524675
add argument to specify recipes for compilation
gschnabel Mar 31, 2024
6806561
move node checks to separate file
gschnabel Mar 31, 2024
b360ff3
remove align_code fun and instead use indent_code fun
gschnabel Apr 11, 2024
d9abe55
factor out fundamental cpp routines
gschnabel Apr 11, 2024
8c61d7c
further refactoring in compiler sub-package
gschnabel Apr 12, 2024
b42755b
further refactoring in compiler sub-package
gschnabel Apr 12, 2024
968081b
fix function def indent in cpp code generation
gschnabel Apr 12, 2024
b715af7
remove unused fun adopt_varval
gschnabel Apr 12, 2024
4deb698
move register_cpp_parsefuns to cpp_boilerplate module
gschnabel Apr 12, 2024
fbcbd06
reorder functions in endf2cpp_aux.py
gschnabel Apr 12, 2024
31d3bee
introduce aux_ prefix functioning as namespace
gschnabel Apr 12, 2024
80e5654
skip useless read statement during code generation
gschnabel Apr 13, 2024
a4330d1
use cpp primitives in mark_var_as_read fun
gschnabel Apr 13, 2024
48ac548
introduce storing firstidx and helper funs
gschnabel Apr 13, 2024
400a0c9
implement new shiftidx functionality
gschnabel Apr 13, 2024
9f5fffa
make more use of cpp primitives
gschnabel Apr 14, 2024
14ca600
add argument `val` to init_readflag
gschnabel Apr 14, 2024
28e03d4
fix: init and set read flag for counter vars
gschnabel Apr 14, 2024
d02c1ba
fix: allow for numbers as indices
gschnabel Apr 14, 2024
89c8dc1
fix: proper treatment of counter vars during lookahead
gschnabel Apr 14, 2024
b5b1480
first working prototype using istream
gschnabel Apr 14, 2024
64816e2
introduce convenience fun is_send
gschnabel Apr 14, 2024
0c9ea7c
introduce read_send fun
gschnabel Apr 14, 2024
81e98be
fix: respect where SEND appears in recipe
gschnabel Apr 14, 2024
7a1e3f9
remove unused imports
gschnabel Apr 15, 2024
8aea86e
fix: now read floats with eE char correctly
gschnabel Apr 15, 2024
dee0529
introduce cpp_read_custom_int_field fun
gschnabel Apr 15, 2024
197acfa
introduce is_intg node check fun
gschnabel Apr 15, 2024
b0d5b51
introduce dtype `intvec`
gschnabel Apr 15, 2024
badfe50
implement full cpp file parsing
gschnabel Apr 14, 2024
04fc58d
fix issues in dict_assign fun
gschnabel Apr 16, 2024
545114c
make use of dict_assign in store_var_in_endf_dict fun
gschnabel Apr 16, 2024
35a8dee
introduce forloop cpp primitive
gschnabel Apr 16, 2024
da6d373
improve: swap indices in MF6 recipe to ensure continous index range
gschnabel Apr 17, 2024
804659f
implement CustomVector class in cpp_boilerplate
gschnabel Apr 17, 2024
eca5769
fix: variable tracking in vardict for if-lookahead
gschnabel Apr 17, 2024
0099c1a
revise var read-status tracking using CustomVector class
gschnabel Apr 17, 2024
6a1f330
implement `store_var_in_endf_dict2` function
gschnabel Apr 16, 2024
3b7102b
first working implementation of global endf dict assignment
gschnabel Apr 16, 2024
8d68e45
change arg type in endfstr2float to char*
gschnabel Apr 18, 2024
ef64824
change arg type in cpp_read_float_field to char*
gschnabel Apr 18, 2024
92745de
add compiler option -O3 in cmake file generation
gschnabel Apr 19, 2024
c76d696
eliminate unnecessary field readings
gschnabel Apr 19, 2024
5d33b1a
replace nested blocks by pointers in var assign
gschnabel Apr 19, 2024
b91c921
make get_name fun work for OOP inheritance
gschnabel Apr 20, 2024
6616442
implement ParseNode class and node_and_kids_to_ParseNode fun
gschnabel Apr 19, 2024
ac43a60
make use of ParseNode class
gschnabel Apr 19, 2024
7f638b9
pass the node that contains vartok to assign_exprstr_to_var
gschnabel Apr 19, 2024
bd9644f
add inplace version of transform_nodes
gschnabel Apr 20, 2024
212198b
introduce skip_nodes argument in contains_variable
gschnabel Apr 20, 2024
f7e7637
augment ParseNode class with memfuns append_precode and check_my_iden…
gschnabel Apr 20, 2024
8694b50
update/fix node_and_kids_to_ParseNode
gschnabel Apr 20, 2024
d7ba41e
add feature: move vars out of inner loop if possible
gschnabel Apr 20, 2024
084a206
add arg `node` to _generate_code_for_loop and actiavte loopvar feature
gschnabel Apr 20, 2024
b0cf4f2
tiny speedup: remove read check before reading arrays
gschnabel Apr 20, 2024
f112d7a
remove unnecessary read flag for arrays
gschnabel Apr 20, 2024
a6e0e9f
preparation: split up assign_exprstr_to_var function
gschnabel Apr 20, 2024
62db602
remove unnecessary arguments in assign_exprstr_to_* funs
gschnabel Apr 20, 2024
43e57b7
add auxfuns for loop node ops
gschnabel Apr 21, 2024
ba7860e
introduce checkpoint arg to _moveup_ptrassign fun
gschnabel Apr 21, 2024
90553ae
remove cpp comment in _assign_exprstr_to_nested_vector
gschnabel Apr 21, 2024
5df53e2
use loop auxfuns in _can_moveup_ptrassign
gschnabel Apr 21, 2024
b45962b
use loop auxfuns in _moveup_ptrassign
gschnabel Apr 21, 2024
725d543
add custom cpp classes for matrices
gschnabel Apr 21, 2024
14e371a
introduce print of mf during compilation
gschnabel Apr 21, 2024
7fa8200
implement register_special_type fun
gschnabel Apr 21, 2024
d944969
use False to indicate that _assign_expstr_... fun did not apply
gschnabel Apr 21, 2024
041a741
remove unused `quote` arg
gschnabel Apr 21, 2024
da60db8
generalize get_cpp_objstr to work with arrays
gschnabel Apr 21, 2024
3c5db77
augment get_cpp_extvarname with arg `vardict` and linked
gschnabel Apr 21, 2024
f522e15
implement get_special_type fun
gschnabel Apr 21, 2024
d9a6228
special type treatment in get_cpp_extvarname
gschnabel Apr 21, 2024
ba5ea3e
add `vardict` arg to define_var
gschnabel Apr 21, 2024
0e0f002
now _get_loop_start and _get_loop_stop return `expr` node
gschnabel Apr 21, 2024
2907aea
fix register_special_tpye fun
gschnabel Apr 21, 2024
ff3f69b
introduce the Matrix2d specialization in define_var
gschnabel Apr 21, 2024
625c1d0
fix bug in recipe for mf32
gschnabel Apr 23, 2024
d672669
implemented _assign_exprstr_to_matrix2d
gschnabel Apr 21, 2024
0c3f5c8
implemented Matrix2d support (with heavy refactoring)
gschnabel Apr 21, 2024
e5ea511
remove unnecessary and slightly dubious register_var invocation
gschnabel Apr 24, 2024
544ebea
fix location of remove_lookahead_counter invocation
gschnabel Apr 24, 2024
20cf28f
clean up: remove commented out and obsolete code
gschnabel Apr 24, 2024
d5eef90
prettify: use some more cpp primitives
gschnabel Apr 24, 2024
b48e573
remove unused fun `generate_mark_vars_as_unread`
gschnabel Apr 24, 2024
62edf91
fix scrambled assignment of ranges to array indices
gschnabel Apr 25, 2024
3b88a7a
refactor: create for each cpp type their own subpackage
gschnabel Apr 25, 2024
d6cfaf3
rename CustomVector to NestedVector
gschnabel Apr 25, 2024
c7a7db1
refactor into three submodules: interpreter, compiler and utils
gschnabel Apr 25, 2024
7fbc2dc
move user_tools and endf6_plumbing into utils package
gschnabel Apr 25, 2024
4ead37c
move cmd.py into package root directory
gschnabel Apr 26, 2024
52bbd43
move endf6 recipes into endf_recipes/endf6 directory
gschnabel Apr 26, 2024
1467bb0
fix: remove incorrect line increment for empty LIST
gschnabel Apr 26, 2024
b509239
enable LIST with empty list body
gschnabel Apr 26, 2024
0bbdad9
introduce convenience fun to get recipe dictionary
gschnabel Apr 26, 2024
54b55a0
add JENDL recipes
gschnabel Apr 26, 2024
9dd8bb7
add arg `endf_format` to `EndfParser` constructor
gschnabel Apr 26, 2024
4b8af53
add option to choose ENDF flavor to cmd-line tool
gschnabel Apr 26, 2024
526248b
rename & move endf_lark.py to endf_recipes/endf_lark_ebnf.py
gschnabel Apr 27, 2024
3a5bd89
improve/fix: create log info also in case of stop_line
gschnabel Apr 27, 2024
687b576
modify MF8/MT457 recipe to avoid arrays with gaps
gschnabel Apr 27, 2024
685e4c7
move __defdic helper fun to utils.py
gschnabel Apr 27, 2024
3904c7c
remove redundancy in JENDL recipes definition
gschnabel Apr 27, 2024
1ff10b4
fix import paths in tests
gschnabel Apr 27, 2024
8300a4b
fix handling of empty lists in writing ENDF-6
gschnabel Apr 27, 2024
7cea82b
introduce endf6-ext flavor and make it default for parsing
gschnabel Apr 27, 2024
e1dc8a6
rename list_recipe_flavors to list_endf_flavors
gschnabel Apr 27, 2024
364739a
improve the interface functions to invoke the compiler
gschnabel Apr 27, 2024
a803492
change build backend to enable cpp modules
gschnabel Apr 27, 2024
2b77ba7
increase size threshold of check-added-large-files precommit hook
gschnabel Apr 27, 2024
c5f3d22
add source code of cpp endf parsers
gschnabel Apr 27, 2024
d5ffdf4
add test for cpp parser module
gschnabel Apr 27, 2024
dfa6835
add workflow dispatch trigger to test_package workflow
gschnabel Apr 27, 2024
274456b
rename aux.py to auxiliary.py to appease windows
gschnabel Apr 27, 2024
76ae8e1
add forgotten arg `overwrite` in function call
gschnabel Apr 28, 2024
23b3406
re-created cpp_parsers
gschnabel Apr 28, 2024
529929f
fix bugs in create_cmake_file and create_project_file
gschnabel Apr 28, 2024
0d57d79
introduce should_parse_section boilerplate cpp fun
gschnabel Apr 28, 2024
6c93f74
introduce should_parse_section aux fun in endf2cpp_aux.py
gschnabel Apr 28, 2024
40a7b2b
implement exclude and include args in cpp parsers (non-functional)
gschnabel Apr 28, 2024
504024c
fix bug in should_parse cpp fun
gschnabel Apr 28, 2024
01213f2
remove forgotten debug cout in should_parse_section
gschnabel Apr 28, 2024
763b4e0
implement read_section_verbatim fun in cpp_boilerplate.py
gschnabel Apr 28, 2024
3833886
implement read_section_verbatim helper in endf2cpp_aux.py
gschnabel Apr 28, 2024
d12a17b
implement verbatim reading depending on should_parse_section
gschnabel Apr 28, 2024
c63125a
remove forgotten debug comment
gschnabel Apr 28, 2024
0364ac2
fix: read verbatim if no parser available for mf/mt
gschnabel Apr 28, 2024
913bc81
re-created cpp parsers incorporating latest changes
gschnabel Apr 28, 2024
563fc22
remove (win-style) CR for Python/CPP parser equivalence
gschnabel Apr 28, 2024
7ead625
more permissive Python parser options for cpp parser tests
gschnabel Apr 28, 2024
ef09390
change again build-backend to poetr.core.masonry.api
gschnabel Apr 28, 2024
54d3889
re-created source of cpp parsers
gschnabel Apr 28, 2024
7f61d60
remove unused import
gschnabel Apr 28, 2024
923152e
iterate over sorted sets for deterministic code generation
gschnabel Apr 28, 2024
a81cc39
add auxiliary func is_if_condition
gschnabel Apr 29, 2024
cc7da14
if condition with missing variables now evaluates to false
gschnabel Apr 29, 2024
7ff4e8e
add treatment of obsolete trafomatrix in MF4
gschnabel Apr 29, 2024
ec6833b
now parse_endf_file files if file inaccessible
gschnabel Apr 29, 2024
621d397
re-create (now reproducible) source codes of cpp parsers
gschnabel Apr 28, 2024
2fe59a7
automatically convert EndfDict to dict in compare_objects
gschnabel Apr 30, 2024
3b2a249
change indent to 2 for cpp code generation
gschnabel May 1, 2024
ffeb4a6
add read_tab1_body and read_tab2_body funs
gschnabel May 1, 2024
8e4162a
add floatvec special type
gschnabel May 1, 2024
98b068f
implement read_int_vec fun
gschnabel May 1, 2024
ee5a9f6
add `vardict` arg to get_cpp_varname func
gschnabel May 1, 2024
3118ba6
use generate_code_for_varassign for MAT,MF,MT
gschnabel May 1, 2024
7e8dd8f
ensure that register_var is called before get_cpp_varname
gschnabel May 1, 2024
dd3ca35
introduce auxiliary unc get_dtype_str
gschnabel May 1, 2024
6d90380
include type info in cpp variable name
gschnabel May 1, 2024
b92371b
move some dtype stuff to cpp_type_aux.py
gschnabel May 1, 2024
825521b
rename cpp_type_aux.py to cpp_dtype_aux.py
gschnabel May 1, 2024
a508ec7
introduce LazyModuleClass to avoid circular imports
gschnabel May 1, 2024
c165d55
introduce get_vartype_idx func
gschnabel May 1, 2024
f7f46e8
introduce read tracking management in variaable_management
gschnabel May 1, 2024
bd67589
introduce funcs for read tracking code generation
gschnabel May 1, 2024
5e636c7
to avoid dict size change isse: iterate over tuple of keys
gschnabel May 1, 2024
bce8c87
disable read tracking for loop counter vars
gschnabel May 1, 2024
586501c
introduce code to track variable type
gschnabel May 1, 2024
3a6eb48
introduce `escape` arg in ifelse cpp primitive
gschnabel May 1, 2024
58186b5
add type_change_check auxiliary func
gschnabel May 1, 2024
c5d66b3
introduce cpp vartype checking in cpp code generation
gschnabel May 1, 2024
51cd121
change @staticmethod to @classmethod
gschnabel May 2, 2024
fc5d180
introduce get_specialtype_name method in Query classes
gschnabel May 2, 2024
25b696e
query specialtype names instead of hard-coding them
gschnabel May 2, 2024
7463bfc
introduce `specialtype` and `dtype` arg in `get_cpp_varname`
gschnabel May 2, 2024
cdf8abe
introduse has_loopvartype aux func
gschnabel May 2, 2024
b462ade
rename get_var_type to get_var_types and return tuple of vartypes
gschnabel May 2, 2024
76dbcd8
introduce classmethod get_cpp_varname in Query classes
gschnabel May 2, 2024
1a6447f
include forgotten @classmethod decorators
gschnabel May 2, 2024
ff7935b
enable register_var to assign multiple vartypes to a variable
gschnabel May 2, 2024
d14dd4f
implement template Query class and derive Query classes from it
gschnabel May 2, 2024
293e59a
make Query classes rely on their on get_cpp_varname method
gschnabel May 2, 2024
8ff5f37
fix wrong read length in read_tab1_body and read_tab2_body
gschnabel May 3, 2024
73dec87
simplify/change interface of auxfuns of Scalar cpp type Scalar
gschnabel May 3, 2024
4e0da6e
use dict instead of list for vartype tracking
gschnabel May 3, 2024
eb8a8f5
introduse `update_vardict` func in variable_management
gschnabel May 3, 2024
ad5cf7f
implement `specialtype` and `dtype` arg treatment in `get_cpp_varname`
gschnabel May 4, 2024
824f232
use `dtype` arg of get_cpp_varname where necessary
gschnabel May 4, 2024
abc2a20
implement new vartype check mechanism
gschnabel May 4, 2024
ed54542
revise tab1 and tab2 parser generation code
gschnabel May 4, 2024
dbe007b
change type checking code for reduced redundancy
gschnabel May 4, 2024
7983195
improve internals of cpp_dtype_aux.py
gschnabel May 4, 2024
310b7fb
move is_loop auxfun into node_checks.py
gschnabel May 4, 2024
1ba3062
move loop node auxfuns into node_aux.py
gschnabel May 4, 2024
a8e49dc
introduce enum for VARTYPE to avoid ugly integer codes
gschnabel May 4, 2024
13e4acb
re-create source code for cpp parsers
gschnabel May 4, 2024
a230072
now reading tab1/2 body counts as one lookahead step
gschnabel May 4, 2024
fefa458
remove duplictate else-branch without effect
gschnabel May 4, 2024
4afbc80
implement list body section option in compiler
gschnabel May 4, 2024
1d378ca
change arg type to `const char*` in `endfstr2int` and
gschnabel May 4, 2024
15e8b32
template functions that read fields and vectors
gschnabel May 4, 2024
61c2e32
remove unused args from `get_text_field`
gschnabel May 5, 2024
1f396ee
fix bug/properly implement `read_custom_int_field`
gschnabel May 5, 2024
3aceb4e
employ `get_custom_int_field` func
gschnabel May 5, 2024
e9dc69a
Update MF7 recipe to ENDF-102 rev. Nov. 2023
marquezj May 8, 2024
f6f82e0
Update MF7 recipe to ENDF-102 rev. Nov. 2023
marquezj May 8, 2024
a6db761
Fix dict
marquezj May 20, 2024
454ad52
Resolve conflict
marquezj May 20, 2024
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
3 changes: 3 additions & 0 deletions .github/workflows/test_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

workflow_call:

workflow_dispatch:


permissions:
contents: read

Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ repos:
hooks:
- id: trailing-whitespace
- id: check-added-large-files
args: ['--maxkb', '2048']

- repo: https://github.com/psf/black
rev: 24.1.1
Expand Down
18 changes: 18 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from glob import glob
from pybind11.setup_helpers import (
Pybind11Extension,
intree_extensions,
build_ext,
)


def build(setup_kwargs):
print("put your build code here")
ext_modules = intree_extensions(glob("endf_parserpy/cpp_parsers/*.cpp"))
setup_kwargs.update(
{
"ext_modules": ext_modules,
"cmd_class": {"build_ext": build_ext},
"zip_safe": False,
}
)
14 changes: 7 additions & 7 deletions docs/source/guide/high_level_functionality.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ more abstract representations into human-friendly
ones.

In this section, we want to discuss one possible
approach to the implementatoin of high-level functionality.
approach to the implementation of high-level functionality.

A nice feature of endf-parserpy is that it keeps
the bidirectional link between data in the ENDF-6
Expand All @@ -38,7 +38,7 @@ high-level functionality also preserves the
link between the original data and the
derived/simplified representation.
While it won't be possible to maintain a
bidirectional link due to the loss of
bidirectional link due to the loss of
information in all cases, e.g. when calculating a group-wise
cross section from point-wise cross sections,
it will certainly be possible in some cases.
Expand All @@ -49,7 +49,7 @@ to the original low-level representation.

We want to demonstrate one possibility to accomplish
this bidirectional linking by implementing a prototype class for linear
interpolation of cross sections in MF3.
interpolation of cross sections in MF3.
The class should support the computation of interpolated values
at energies requested by the user and also enable the user to update the cross section
values at the mesh points.
Expand All @@ -62,7 +62,7 @@ could look something like this:
.. code:: python

import numpy as np
from copy import copy
from copy import copy
from endf_parserpy.accessories import EndfVariable


Expand Down Expand Up @@ -109,16 +109,16 @@ cross section (MF3/MT1):

from endf_parserpy import EndfParser
from endf_parserpy.accessories import EndfVariable

parser = EndfParser()
endf_dict = parser.parsefile('input.endf')

xvar = EndfVariable('3/1/xstable/E', endf_dict)
xvar = EndfVariable('3/1/xstable/E', endf_dict)
yvar = EndfVariable('3/1/xstable/xs', endf_dict)
int_arr = EndfVariable('3/1/xstable/INT', endf_dict)
nbt_arr = EndfVariable('3/1/xstable/INT', endf_dict)

interpobj = LinearCrossSectionInterpolation(xvar, yvar, nbt_arr, int_arr)
interpobj = LinearCrossSectionInterpolation(xvar, yvar, nbt_arr, int_arr)


After loading the data of an ENDF-6 file into the dictionary ``endf_dict``,
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Install endf-parserpy

.. code:: bash

pip install endf-parserpy --upgrade.
pip install endf-parserpy --upgrade


.. note::
Expand Down
2 changes: 1 addition & 1 deletion docs/source/overview/mapping_endf_recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Variables with indices: Arrays
The ENDF-6 recipe listed :ref:`above <mf1mt451_recipe>` contains
several examples of array specifications, such as ``DESCRIPTION[i]``,
``MFx[i]`` and ``MTx[i]``. Their names, ``DESCRIPTION``,
``MF``, etc. are expected to be available as keys in the Python dictionary
``MFx``, etc. are expected to be available as keys in the Python dictionary
corresponding to the ENDF-6 recipe. The objects associated with those
keys are expected to be dictionaries with integer keys.
The range of the available integer keys can be inferred from the
Expand Down
13 changes: 11 additions & 2 deletions endf_parserpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
from .endf_parser import EndfParser
from .endf_parser import BasicEndfParser # deprecated alias
from .interpreter import EndfParser, BasicEndfParser
from .utils import (
debugging_utils,
accessories,
user_tools,
endf6_plumbing,
)
from .utils.accessories import EndfDict
from .utils.accessories import EndfPath
from .utils.accessories import EndfVariable
from .utils.debugging_utils import compare_objects
Loading