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

Several tests are failing in the PyNE build with scikit-build. #1512

Open
ahnaf-tahmid-chowdhury opened this issue Nov 26, 2023 · 0 comments

Comments

@ahnaf-tahmid-chowdhury
Copy link
Member

Description

The following tests are failing with the specified errors:

  1. test_mesh.py::test_structured_mesh_from_coords - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimension. The detected shape was (3,) + inhomogeneous part.

  2. test_nucname.py::test_id - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte.

  3. test_rxname.py::test_name_not - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte.

  4. Other related UnicodeDecodeError issues in test_nucname.py and test_rxname.py.

Logs

============================= test session starts ==============================
platform linux -- Python 3.12.0, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/runner/work/PyNE/PyNE
collected 1061 items / 3 skipped

test_ace.py ....                                                         [  0%]
test_activation_responses.py ....                                        [  0%]
test_alara.py .....................                                      [  2%]
test_binaryreader.py ...........................                         [  5%]
test_bins.py .............                                               [  6%]
test_cccc.py ..........                                                  [  7%]
test_cram.py ..............                                              [  8%]
test_data.py ........................................................... [ 14%]
...........                                                              [ 15%]
test_data_checksums.py ..                                                [ 15%]
test_data_nofile.py ...                                                  [ 15%]
test_decay.py .                                                          [ 15%]
test_endf.py .s..............................s.......                    [ 19%]
test_endl.py .....                                                       [ 20%]
test_enrichment.py ............................                          [ 22%]
test_ensdf.py ....                                                       [ 23%]
test_ensdf_processing.py ssssssssss                                      [ 24%]
test_fispact.py ......                                                   [ 24%]
test_fluka.py ....                                                       [ 25%]
test_fortran.py ...........                                              [ 26%]
test_jsoncpp.py ..............................                           [ 28%]
test_material.py ....................................................... [ 34%]
.....F...............................................                    [ 39%]
test_material_data_external.py .                                         [ 39%]
test_material_data_internal.py .                                         [ 39%]
test_materials_library.py .........                                      [ 40%]
test_mcnp.py ...............................                             [ 43%]
test_mesh.py ....F...................................................    [ 48%]
test_nucname.py ............F........................................... [ 53%]
............................................FFFFFFFFFFF................. [ 60%]
........................................................................ [ 67%]
.                                                                        [ 67%]
test_openmc_utils.py .......s.ss                                         [ 68%]
test_origen22.py .....................                                   [ 70%]
test_particle.py ........                                                [ 71%]
test_partisn.py .....................                                    [ 73%]
test_r2s.py ..F...F...ss                                                 [ 74%]
test_rxname.py ...................................F.....F.....F.......F. [ 79%]
....F..                                                                  [ 80%]
test_serpent.py ......                                                   [ 80%]
test_source.py ......                                                    [ 81%]
test_spectrometry.py .........                                           [ 82%]
test_stlcontainers.py ...............                                    [ 83%]
test_tally.py ........................................................   [ 88%]
test_transmuters.py .                                                    [ 88%]
test_tutorial_notebooks.py .                                             [ 89%]
test_utils.py ........................                                   [ 91%]
test_variancereduction.py .....                                          [ 91%]
transmute/test_chainsolve.py .......                                     [ 92%]
xs/test_cache.py ....                                                    [ 92%]
xs/test_channels.py .........F                                           [ 93%]
xs/test_data_source.py .............................                     [ 96%]
xs/test_models.py .....................................                  [100%]
=========================== short test summary info ============================
SKIPPED [1] test_ahot.py:6: No ahot_script available
SKIPPED [1] test_dagmc.py:32: Skipped
SKIPPED [1] test_source_sampling.py:22: Can't import mesh, skipping tests
SKIPPED [1] test_endf.py:28: http://www.nndc.bnl.gov/endf/b6.8/tapes/tape.100 not available
SKIPPED [1] test_endf.py:28: http://t2.lanl.gov/nis/data/data/ENDFB-VII.1-neutron/Ni/59 not available
SKIPPED [1] test_ensdf_processing.py:19: Skipped
SKIPPED [1] test_ensdf_processing.py:72: Skipped
SKIPPED [1] test_ensdf_processing.py:88: Skipped
SKIPPED [1] test_ensdf_processing.py:156: Skipped
SKIPPED [1] test_ensdf_processing.py:176: Skipped
SKIPPED [1] test_ensdf_processing.py:199: Skipped
SKIPPED [1] test_ensdf_processing.py:215: Skipped
SKIPPED [1] test_ensdf_processing.py:231: Skipped
SKIPPED [1] test_ensdf_processing.py:246: Skipped
SKIPPED [1] test_ensdf_processing.py:298: Skipped
SKIPPED [1] test_openmc_utils.py:165: Skipped
SKIPPED [1] test_openmc_utils.py:208: Skipped
SKIPPED [1] test_openmc_utils.py:269: Skipped
SKIPPED [1] test_r2s.py:699: Skipped
SKIPPED [1] test_r2s.py:733: Skipped
FAILED test_material.py::test_getitem_str - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb8 in position 2: invalid start byte
FAILED test_mesh.py::test_structured_mesh_from_coords - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part.
FAILED test_nucname.py::test_id - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_nucname.py::test_mcnp_to_id[93000-930000000] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_nucname.py::test_mcnp_to_id[95242-952420001] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_nucname.py::test_mcnp_to_id[96244-962440000] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_nucname.py::test_mcnp_to_id[95942-952420004] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_nucname.py::test_mcnp_to_id[2004-20040000] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_nucname.py::test_mcnp_to_id[94239-942390000] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_nucname.py::test_mcnp_to_id[96644-962440001] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_nucname.py::test_mcnp_to_id[95642-952420000] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_nucname.py::test_mcnp_to_id[92000-920000000] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_nucname.py::test_mcnp_to_id[92636-922360001] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_nucname.py::test_mcnp_to_id[2000-20000000] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_r2s.py::test_irradiation_setup_unstructured - assert 0.0 == 1.74147e-06 ± 1.7e-12
  comparison failed
  Obtained: 0.0
  Expected: 1.74147e-06 ± 1.7e-12
FAILED test_r2s.py::test_irradiation_setup_unstructured_nondef_tag - assert -1.288229753919427e-231 == 0.0601522 ± 6.0e-08
  comparison failed
  Obtained: -1.288229753919427e-231
  Expected: 0.0601522 ± 6.0e-08
FAILED test_rxname.py::test_name_not - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_rxname.py::test_id_not - UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 0: invalid start byte
FAILED test_rxname.py::test_mt_not - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED test_rxname.py::test_label_not - UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 0: invalid start byte
FAILED test_rxname.py::test_doc_not - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcb in position 2: invalid continuation byte
FAILED xs/test_channels.py::test_sigma_t - AssertionError: 
Arrays are not almost equal to 6 decimals

Mismatched elements: 4 / 4 (100%)
Max absolute difference: 8.51769378
Max relative difference: 0.88425055
 x: array([1.114976, 1.272324, 1.558177, 2.375025])
 y: array([9.63267 , 7.290018, 5.075871, 3.442719])
===== 22 failed, 1022 passed, 20 skipped, 167 warnings in 98.60s (0:01:38) =====

Expected Behavior

The tests should pass without UnicodeDecodeError or ValueError.

Actual Behavior

Tests are failing with UnicodeDecodeError and ValueError.

Workflow Details

Details

  • PyNE Version: dev
  • Operating System: Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant