- Weatherford Knowledge Base
- P#
- Entities Function
-
Getting Started
-
Customer Training
-
Customer Success
-
Updates
-
Production Optimization
-
Artificial Lift Optimization
-
Completion Optimization
-
Environmental, Social & Governance
-
Development, Acquisition & Divestitures
-
Enhanced Oil Recovery
-
Admin
-
P#
- Getting Started with P#
- Data Cleansing
- String Functions
- Scenario Functions
- Regression Functions
- Placeholder Functions
- Mathematical Functions
- Logic Functions
- Entities Function
- Moving Window Functions
- Time and Date Functions
- Statistical Functions
- Economic Functions
- Data Handling
- Additional Functions
- Directional Functions
- Machine Learning Functions
- DCA Functions
- Neighborhood Functions
-
Packages
EntitiesByCondition()
Returns all entities for which the specified boolean condition is evaluated as True (for example, a static signal value comparison).
Syntax
EntitiesByCondition(expression)
- expression: one or more boolean expressions
EntitiesByCondition() can combine multiple boolean expressions with and/or constructs (see examples). Mathematical operators that are allowed include
- = (equals)
- <= (less than or equal to)
- >= (greater than or equal to)
- <> (not equal to)
Examples
EntitiesByCondition("porosity" in "%" = 42.67)
EntitiesByCondition("porosity" in "%" >= 1.2 And "permeability" in "m2" <= 21.7)
EntitiesByCondition("porosity" in "%" >= 1.2 Or "permeability" in "m2" <= 21.7)
EntitiesByCondition(
"porosity" in "%" >= 1.2 And
("permeability" in "m2" = 21.7 Or "permeability" in "m2" = 42.1)
)
EntitiesByCondition("porosity" in "%" <> 17.3)
EntitiesByCondition(IsNotNull("porosity" in "%"))
EntitiesByCondition(IsNull("permeability" in "m2"))
More Examples
Entity Set "Montney Wells"
EntitiesByCondition(Contains("primary formation" in " ", "montney")
Or Contains("primary formation" in " ", "mntny"))
End Set
Entity Set "Upper Montney Wells"
EntitiesByCondition("primary formation" in " " = "TRmntny_U")
End Set