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

BUG crash of BranchCollector.collect() #510

Open
ybilodid opened this issue Feb 6, 2024 · 0 comments
Open

BUG crash of BranchCollector.collect() #510

ybilodid opened this issue Feb 6, 2024 · 0 comments
Labels

Comments

@ybilodid
Copy link

ybilodid commented Feb 6, 2024

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

@ybilodid ybilodid added the bug label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant