From 6b61972894152ebffca7c3c9703e369a1ebe33c3 Mon Sep 17 00:00:00 2001 From: Chris Hogan Date: Mon, 19 Mar 2018 08:32:04 -0500 Subject: [PATCH] Align with scheme interface on *in_box functions --- python/simulation.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/simulation.py b/python/simulation.py index f75934cd9..bea15def8 100644 --- a/python/simulation.py +++ b/python/simulation.py @@ -741,29 +741,29 @@ def flux_in_box(self, d, box): return self.fields.flux_in_box(d, box.swigobj) - def electric_energy_in_box(self, d, box): + def electric_energy_in_box(self, box): if self.fields is None: raise RuntimeError('Fields must be initialized before using electric_energy_in_box') box = self._fit_volume_to_simulation(box) - return self.fields.electric_energy_in_box(d, box.swigobj) + return self.fields.electric_energy_in_box(box.swigobj) - def magnetic_energy_in_box(self, d, box): + def magnetic_energy_in_box(self, box): if self.fields is None: raise RuntimeError('Fields must be initialized before using magnetic_energy_in_box') box = self._fit_volume_to_simulation(box) - return self.fields.magnetic_energy_in_box(d, box.swigobj) + return self.fields.magnetic_energy_in_box(box.swigobj) - def field_energy_in_box(self, d, box): + def field_energy_in_box(self, box): if self.fields is None: raise RuntimeError('Fields must be initialized before using field_energy_in_box') box = self._fit_volume_to_simulation(box) - return self.fields.field_energy_in_box(d, box.swigobj) + return self.fields.field_energy_in_box(box.swigobj) def modal_volume_in_box(self, vol=None): if self.fields is None: