We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 373990a commit 613f1feCopy full SHA for 613f1fe
devito/tools/utils.py
@@ -362,10 +362,7 @@ def wrapper(*args):
362
# An argument is symbolic, so give up and assume default
363
return default
364
365
- try:
366
- return func(*args)
367
- except TypeError:
368
- return default
+ return func(*args)
369
370
return wrapper
371
@@ -375,10 +372,10 @@ def wrapper(*args):
375
372
@avoid_symbolic(default=False)
376
373
def smart_lt(a, b):
377
374
"""An Lt that gives up and returns False if supplied a symbolic argument"""
378
- return bool(a < b)
+ return a < b
379
380
381
382
def smart_gt(a, b):
383
"""A Gt that gives up and returns False if supplied a symbolic argument"""
384
- return bool(a > b)
+ return a > b
0 commit comments