Skip to content

Commit c43e575

Browse files
authored
Fix warning condition on field location for compute_streamlines (#1932)
1 parent 80dcf65 commit c43e575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansys/dpf/core/helpers/streamlines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def compute_streamlines(meshed_region, field, **kwargs):
159159
160160
"""
161161
# Check velocity field location
162-
if field.location is not locations.nodal:
162+
if field.location != locations.nodal:
163163
warnings.warn(
164164
"Velocity field must have a nodal location. Result must be carefully checked."
165165
)

0 commit comments

Comments
 (0)