mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Now properly indexing ValuesView in MGXS.num_subdomains
This commit is contained in:
parent
f9aa2b4904
commit
02296cbd77
2 changed files with 2 additions and 2 deletions
|
|
@ -616,4 +616,4 @@ class Library(object):
|
|||
full_filename = full_filename.replace(' ', '-')
|
||||
|
||||
# Load and return pickled Library object
|
||||
return pickle.load(open(full_filename, 'rb'))
|
||||
return pickle.load(open(full_filename, 'rb'))
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ class MGXS(object):
|
|||
|
||||
@property
|
||||
def num_subdomains(self):
|
||||
tally = self.tallies.values()[0]
|
||||
tally = list(self.tallies.values())[0]
|
||||
domain_filter = tally.find_filter(self.domain_type)
|
||||
return domain_filter.num_bins
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue