Coder Social home page Coder Social logo

endf-parserpy's People

Contributors

gschnabel avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

endf-parserpy's Issues

Issue reading JENDL-5 's MF8

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,

parser include single MF

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.