diff --git a/src/ansys/dpf/core/helpers/streamlines.py b/src/ansys/dpf/core/helpers/streamlines.py index fc2a94d0ba..bcfd8f6f4f 100644 --- a/src/ansys/dpf/core/helpers/streamlines.py +++ b/src/ansys/dpf/core/helpers/streamlines.py @@ -159,7 +159,7 @@ def compute_streamlines(meshed_region, field, **kwargs): """ # Check velocity field location - if field.location is not locations.nodal: + if field.location != locations.nodal: warnings.warn( "Velocity field must have a nodal location. Result must be carefully checked." )