Skip to content

Commit 791e269

Browse files
committed
misc: quartodoc doesn't like lambda for docs
1 parent a7d656f commit 791e269

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

devito/builtins/arithmetic.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,20 +180,28 @@ def inner(f, g):
180180
return f.dtype(n.data[0])
181181

182182

183-
red_doc = lambda func: f"""
184-
Retrieve the {func}imum.
183+
def mmin(f):
184+
"""
185+
Retrieve the minimum.
185186
186187
Parameters
187188
----------
188189
f : array_like or Function
189190
Input operand.
190191
"""
192+
return _reduce_func(f, np.min, dv.mpi.MPI.MIN)
193+
191194

195+
def mmax(f):
196+
"""
197+
Retrieve the maximum.
192198
193-
mmin = lambda f: _reduce_func(f, np.min, dv.mpi.MPI.MIN)
194-
mmin.__doc__ = red_doc('min')
195-
mmax = lambda f: _reduce_func(f, np.max, dv.mpi.MPI.MAX)
196-
mmax.__doc__ = red_doc('max')
199+
Parameters
200+
----------
201+
f : array_like or Function
202+
Input operand.
203+
"""
204+
return _reduce_func(f, np.max, dv.mpi.MPI.MAX)
197205

198206

199207
@dv.switchconfig(log_level='ERROR')

0 commit comments

Comments
 (0)