Merge branch 'delete_tally' of github.com:lewisgross1296/openmc into delete_tally

forgot to pull committed changes from PR on GitHub
This commit is contained in:
lewisgross1296 2022-08-15 13:44:40 -05:00
commit 94b6172bb5
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ int openmc_regular_mesh_get_params(
int openmc_regular_mesh_set_dimension(int32_t index, int n, const int* dims);
int openmc_regular_mesh_set_params(int32_t index, int n, const double* ll,
const double* ur, const double* width);
int openmc_remove_tally(int32_t id);
int openmc_remove_tally(int32_t index);
int openmc_reset();
int openmc_reset_timers();
int openmc_run();

View file

@ -402,7 +402,7 @@ class _TallyMapping(Mapping):
def __repr__(self):
return repr(dict(self))
def __delitem__(self,key):
def __delitem__(self, key):
"""Delete a tally from tally vector and remove the ID,index pair from tally"""
_dll.openmc_remove_tally(self._get_tally_index(key))