Now properly indexing ValuesView in MGXS.num_subdomains

This commit is contained in:
Will Boyd 2015-10-21 12:59:07 -04:00
parent f9aa2b4904
commit 02296cbd77
2 changed files with 2 additions and 2 deletions

View file

@ -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'))

View file

@ -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