-
Notifications
You must be signed in to change notification settings - Fork 37
Description
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