Allow objects in addition to ids in Filters

This commit is contained in:
Sterling Harper 2017-04-13 17:36:49 -04:00
parent bc4683be1c
commit 98ab232dc1
9 changed files with 686 additions and 548 deletions

View file

@ -153,7 +153,7 @@ plot_file.export_to_xml()
# Instantiate a distribcell Tally
tally = openmc.Tally(tally_id=1)
tally.filters = [openmc.DistribcellFilter(cell2.id)]
tally.filters = [openmc.DistribcellFilter(cell2)]
tally.scores = ['total']
# Instantiate a Tallies collection and export to XML