From 70598087cd8d735c7fd8d122893dcd74b10a7d43 Mon Sep 17 00:00:00 2001 From: Lewis Gross <43077972+lewisgross1296@users.noreply.github.com> Date: Mon, 15 Aug 2022 13:33:49 -0500 Subject: [PATCH 1/2] forgot to change name of arrgument from id to index in header Co-authored-by: Paul Romano --- include/openmc/capi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openmc/capi.h b/include/openmc/capi.h index e04d4898e7..29e9009655 100644 --- a/include/openmc/capi.h +++ b/include/openmc/capi.h @@ -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(); From c772972808674b94f602af5fe854adcf4da3d3e3 Mon Sep 17 00:00:00 2001 From: Lewis Gross <43077972+lewisgross1296@users.noreply.github.com> Date: Mon, 15 Aug 2022 13:34:19 -0500 Subject: [PATCH 2/2] add space for compliant formatting Co-authored-by: Paul Romano --- openmc/lib/tally.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/lib/tally.py b/openmc/lib/tally.py index c1c8ab0941..0be2f9ed50 100644 --- a/openmc/lib/tally.py +++ b/openmc/lib/tally.py @@ -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))