iaea-nds / endf-parserpy Goto Github PK
View Code? Open in Web Editor NEWPython package for reading, writing, verifying and translating ENDF-6 formatted files
License: Other
Python package for reading, writing, verifying and translating ENDF-6 formatted files
License: Other
When trying to parse JENDL-5 decay library, there is an error with one of the template reading :
endf_parserpy.custom_exceptions.NumberMismatchError:
Here is the parser record log until failure:
-------- Line 0 -----------
Template: [ MAT , 8 , 457 / ZA , AWR , LIS , LISO , NST , NSP ] HEAD
Line: " 1.002400+4 2.378749+1 0 0 0 2 127 8457 1"
.
.
.
-------- Line 7 -----------
Template: [ MAT , 8 , 457 / 0.0 , STYP , LCON , LCOV , 6 , NER /
FD , dFD , ERAV , dERAV , FC , dFC ] LIST
Line: " 8.744100+5 0.000000+0 0 0 4 0 127 8457 8"
Error message: Expected 6 in the ENDF file but got 4. The value was encountered in a source field named N1
There is the same issue for stable, where the evaluator choose to set the so called N1 value here to 0 and not have a following line.
Best regards,
When only wanting to pull a single MF parsefile throws an error. Works when calling 3 and 4 though.
parser.parsefile('n-008_O_017.endf', include=(3))
Traceback (most recent call last):
File ~\AppData\Local\miniconda3\envs\endf\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File c:\users\quiste\onedrive - idaho national laboratory\desktop\projects\python\nuclear data\test.py:29
endf_dict = parser.parsefile('n-008_O_017.endf', include=(3))
File ~\AppData\Local\miniconda3\envs\endf\Lib\site-packages\endf_parserpy\endf_parser.py:1041 in parsefile
return self.parse(lines, exclude, include, nofail=nofail)
File ~\AppData\Local\miniconda3\envs\endf\Lib\site-packages\endf_parserpy\endf_parser.py:823 in parse
should_skip = self.should_skip_section(mf, mt, exclude, include)
File ~\AppData\Local\miniconda3\envs\endf\Lib\site-packages\endf_parserpy\endf_parser.py:781 in should_skip_section
if mf not in include and (mf, mt) not in include:
TypeError: argument of type 'int' is not iterable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.