# Tallys of Lattice Elements in 0.14.0

**URL:** <https://openmc.discourse.group/t/tallys-of-lattice-elements-in-0-14-0/3911>\
**Category:** User Support\
**Created:** [February 14, 2024, 11:40pm UTC](https://openmc.discourse.group/t/tallys-of-lattice-elements-in-0-14-0/3911 "2024-02-14T23:40:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daedalus](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/daedalus/32/2928_2.png) [@Daedalus](https://openmc.discourse.group/u/Daedalus)\
**Post date:** [February 14, 2024, 11:40pm UTC](https://openmc.discourse.group/t/tallys-of-lattice-elements-in-0-14-0/3911/1 "2024-02-14T23:40:29Z")

</div>

I updated to the new version recently and am having some trouble getting tallies to work using the updated “model.differentiate\_depletable\_mats”. I have a pincell lattice that I have differentiated, and I want to be able to take tallies on each of the differentiated pins separately.

## Current Tally Setup

fiss\_filter\_cell = openmc.CellFilter([fuel\_rod.id])  
fiss\_tally = openmc.Tally()  
fiss\_tally.filters = [fiss\_filter\_cell]  
fiss\_tally.scores = [‘fission’, ‘kappa-fission’]  
tallies = openmc.Tallies([fiss\_tally])  
tallies.export\_to\_xml()

---

<div class="post-metadata">

**Author:** ![Shimwell](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/shimwell/32/3876_2.png) [@Shimwell](https://openmc.discourse.group/u/Shimwell)\
**Post date:** [February 15, 2024, 2:04pm UTC](https://openmc.discourse.group/t/tallys-of-lattice-elements-in-0-14-0/3911/2 "2024-02-15T14:04:17Z")

</div>

Perhaps related to this thread [Problem with diff\_burnable\_mats=True - #3 by Artur](https://openmc.discourse.group/t/problem-with-diff-burnable-mats-true/3838/3)

---

<div class="post-metadata">

**Author:** ![Daedalus](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/daedalus/32/2928_2.png) [@Daedalus](https://openmc.discourse.group/u/Daedalus)\
**Post date:** [February 16, 2024, 10:37pm UTC](https://openmc.discourse.group/t/tallys-of-lattice-elements-in-0-14-0/3911/3 "2024-02-16T22:37:54Z")

</div>

Solution is to use the DistribcellFilter instead of CellFilter like so:  
distrib\_filter = openmc.DistribcellFilter(fuel\_rod)  
Where “fuel\_rod” is the name of my fuel pin cell.
