Skip to content

Commit

Permalink
api: add w= for weights shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Aug 7, 2024
1 parent 81d042c commit 9276723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/finite_differences/derivative.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def _process_x0(cls, dims, **kwargs):

@classmethod
def _process_weights(cls, **kwargs):
weights = kwargs.get('weights')
weights = kwargs.get('weights', kwargs.get('w'))
if weights is None:
return None
elif isinstance(weights, sympy.Function):
Expand Down

0 comments on commit 9276723

Please sign in to comment.