Skip to content

Commit

Permalink
Merge pull request #58 from agencyenterprise/fix-extra-kwarg
Browse files Browse the repository at this point in the history
Pop kwarg to avoid `TypeError`
  • Loading branch information
ccuetom authored Oct 12, 2023
2 parents fb47928 + 9301fd3 commit 31d52cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stride/physics/iso_acoustic/devito.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ async def before_forward(self, wavelets, vp, rho=None, alpha=None, **kwargs):
num_sources = shot.num_points_sources
num_receivers = shot.num_points_receivers

save_wavefield = kwargs.get('save_wavefield', False)
save_wavefield = kwargs.pop('save_wavefield', False)
if save_wavefield is False:
save_wavefield = vp.needs_grad
if rho is not None:
Expand Down

0 comments on commit 31d52cf

Please sign in to comment.