Skip to content

BUG crash of BranchCollector.collect() #510

@ybilodid

Description

@ybilodid

Summary of issue

f30av5xs.zip
crash of BranchCollector.collect()

Code for reproducing the issue

import serpentTools as sT
from serpentTools.xs import BranchCollector
coeread = sT.read('f30av5xs.coe')
collector = BranchCollector(coeread)
collector.collect()
Traceback (most recent call last):

Cell In[33], line 1
collector.collect()

File ~\AppData\Local\anaconda3\Lib\site-packages\serpentTools\xs.py:467 in collect
sampleBranchKey = self._getBranchStates()

File ~\AppData\Local\anaconda3\Lib\site-packages\serpentTools\xs.py:495 in _getBranchStates
branchSets[stateIndex].add(state)

IndexError: tuple index out of range

Actual outcome including console output and error traceback if applicable

Traceback (most recent call last):

Cell In[33], line 1
collector.collect()

File ~\AppData\Local\anaconda3\Lib\site-packages\serpentTools\xs.py:467 in collect
sampleBranchKey = self._getBranchStates()

File ~\AppData\Local\anaconda3\Lib\site-packages\serpentTools\xs.py:495 in _getBranchStates
branchSets[stateIndex].add(state)

IndexError: tuple index out of range

Expected outcome

Versions

serpentTools 0.10.1
Python 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) [MSC v.1916 64 bit (AMD64)]
IPython 8.15.0 -- An enhanced Interactive Python.
Serpent 2.1.32

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions