Skip to content

error while converting fendl #39

@shimwell

Description

@shimwell

just trying to process a photon file and getting this error

Found 61 photon ENDF files
[1/61] ph_0100_1-H
Traceback (most recent call last):
  File "/home/jon/cross_section_data_fendl_3.2c/.venv/bin/convert-fendl", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/jon/cross_section_data_fendl_3.2c/.venv/lib/python3.13/site-packages/nuclear_data_to_yamc_format/cli/convert_fendl.py", line 129, in main
    convert_photon_endf(photo_path, photon_dest, library=lib_name)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jon/cross_section_data_fendl_3.2c/.venv/lib/python3.13/site-packages/nuclear_data_to_yamc_format/__init__.py", line 123, in convert_photon_endf
    data = openmc.data.IncidentPhoton.from_endf(ev)
  File "/home/jon/cross_section_data_fendl_3.2c/.venv/lib/python3.13/site-packages/openmc/data/photon.py", line 625, in from_endf
    ev = Evaluation(photoatomic)
  File "/home/jon/cross_section_data_fendl_3.2c/.venv/lib/python3.13/site-packages/openmc/data/endf.py", line 82, in __init__
    if fh.tell() == 0:
       ^^^^^^^
AttributeError: 'Material' object has no attribute 'tell'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions