From fa26a4df13ea9c417af4869e6f73bec1abe5a593 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Sun, 28 Jun 2015 17:06:36 +0700 Subject: [PATCH] Fix error in basic example with Python API --- examples/python/basic/build-xml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/python/basic/build-xml.py b/examples/python/basic/build-xml.py index 312a05a8d..fb850f3ad 100644 --- a/examples/python/basic/build-xml.py +++ b/examples/python/basic/build-xml.py @@ -108,7 +108,7 @@ energy_filter = openmc.Filter(type='energy', bins=[0., 20.]) energyout_filter = openmc.Filter(type='energyout', bins=[0., 20.]) # Instantiate the first Tally -first_tally = openmc.Tally(tally_id=1, label='first tally') +first_tally = openmc.Tally(tally_id=1, name='first tally') first_tally.add_filter(cell_filter) scores = ['total', 'scatter', 'nu-scatter', \ 'absorption', 'fission', 'nu-fission'] @@ -116,7 +116,7 @@ for score in scores: first_tally.add_score(score) # Instantiate the second Tally -second_tally = openmc.Tally(tally_id=2, label='second tally') +second_tally = openmc.Tally(tally_id=2, name='second tally') second_tally.add_filter(cell_filter) second_tally.add_filter(energy_filter) scores = ['total', 'scatter', 'nu-scatter', \ @@ -125,7 +125,7 @@ for score in scores: second_tally.add_score(score) # Instantiate the third Tally -third_tally = openmc.Tally(tally_id=3, label='third tally') +third_tally = openmc.Tally(tally_id=3, name='third tally') third_tally.add_filter(cell_filter) third_tally.add_filter(energy_filter) third_tally.add_filter(energyout_filter)