From a8b0f1714af39b2803055c6dc8288f22739bd8f2 Mon Sep 17 00:00:00 2001 From: lewisgross1296 Date: Tue, 16 Aug 2022 14:09:05 -0500 Subject: [PATCH] mistaken, dont need _get_tally_index, we call the openmc C++ api one instead --- openmc/lib/tally.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/openmc/lib/tally.py b/openmc/lib/tally.py index 5ddee90e49..85af8ffff4 100644 --- a/openmc/lib/tally.py +++ b/openmc/lib/tally.py @@ -412,14 +412,4 @@ class _TallyMapping(Mapping): """Delete a tally from tally vector and remove the ID,index pair from tally""" _dll.openmc_remove_tally(self[key]._index) - def _get_tally_index(self,key): - """Given the ID, return the index""" - index = c_int32() - try: - _dll.openmc_get_tally_index(key, index) - except (AllocationError, InvalidIDError) as e: - # __contains__ expects a KeyError to work correctly - raise KeyError(str(e)) - return index.value - tallies = _TallyMapping()