From 4814346b8d018dbd1431db1e516f73a465769a8a Mon Sep 17 00:00:00 2001 From: PProfizi Date: Mon, 25 Nov 2024 16:57:05 +0100 Subject: [PATCH] Fix warning condition on field location for compute_streamlines --- src/ansys/dpf/core/helpers/streamlines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/dpf/core/helpers/streamlines.py b/src/ansys/dpf/core/helpers/streamlines.py index fc2a94d0ba1..bcfd8f6f4f7 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." )