Skip to content

Commit 780de61

Browse files
remove redundant check
1 parent c61454c commit 780de61

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pina/_src/equation/zoo/advection_equation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ def __init__(self, c):
2929
:raises ValueError: If ``c`` is an empty list.
3030
"""
3131
# Check consistency
32-
check_consistency(c, (float, int, list))
32+
check_consistency(c, (float, int))
3333
if isinstance(c, list):
34-
all(check_consistency(ci, (float, int)) for ci in c)
3534
if len(c) < 1:
3635
raise ValueError("'c' cannot be an empty list.")
3736
else:

0 commit comments

Comments
 (0)