Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align with scheme interface on *in_box functions #239

Merged
merged 1 commit into from
Mar 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions python/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down