# ScatterProbabilityMatrix.get\_flux() results in an error

**URL:** <https://openmc.discourse.group/t/scatterprobabilitymatrix-get-flux-results-in-an-error/3964>\
**Category:** User Support\
**Created:** [February 27, 2024, 12:37am UTC](https://openmc.discourse.group/t/scatterprobabilitymatrix-get-flux-results-in-an-error/3964 "2024-02-27T00:37:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnuthin](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@johnuthin](https://openmc.discourse.group/u/johnuthin)\
**Post date:** [February 27, 2024, 12:37am UTC](https://openmc.discourse.group/t/scatterprobabilitymatrix-get-flux-results-in-an-error/3964/1 "2024-02-27T00:37:04Z")

</div>

Hello,

I am trying to homogenize multiple universe XS using the get\_homogenized\_xs() function for various XS. I noticed that the ScatterProbabilityMatrix.get\_flux() throws an error which then breaks get\_homogenized\_xs() further down the line. Is there anyway to do a quick hotfix for this - even locally in a conda openmc installation? I attached a very simple example notebook showing this error.

Cheers  
[example.ipynb](https://openmc.discourse.group/uploads/short-url/nfagWmmNruZRleHoiZuYmNWV9Xx.ipynb) (15.9 KB)

* * *

AttributeError Traceback (most recent call last)  
Cell In[20], line 1  
----\> 1 scatteringProb.get\_flux()

File ~/mambaforge3/envs/openmc-env/lib/python3.11/site-packages/openmc/mgxs/mgxs.py:1262, in MGXS.get\_flux(self, groups, subdomains, order\_groups, value, squeeze, \*\*kwargs)  
1260 else:  
1261 msg = “MGXS of Type {} do not have an explicit weighting flux!”  
 → 1262 raise ValueError(msg.format(self. **name** ))  
1264 flux = tally.get\_values(filters=filters, filter\_bins=filter\_bins,  
1265 nuclides=[‘total’], value=value)  
1267 # Eliminate the trivial score dimension

AttributeError: ‘ScatterProbabilityMatrix’ object has no attribute ‘ **name** ’
