Skip to content

Commit e401a1d

Browse files
authored
Update README.md
An updated version of the example, with a Python-based Filter window.
1 parent 3b9cf82 commit e401a1d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Advanced/geofence/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This example uses Join, Geofence, and Filter windows to match wanted vehicles th
44

55
---
66
**NOTE:**
7-
Use this example with SAS Event Stream Processing 2022.10 and later. This example contains a Lua-based Filter window. Earlier releases of SAS Event Stream Processing do not support Lua-based Filter windows.
7+
Use this example with SAS Event Stream Processing 2024.01 and later. This example contains a Python-based Filter window. Earlier releases of SAS Event Stream Processing do not support Python-based Filter windows.
88

99
---
1010

@@ -98,13 +98,12 @@ The GeofenceMatches window filters out matches with null values.
9898
Explore the settings for the GeofenceMatches window:
9999
1. Select the GeofenceMatches window.
100100
2. In the right pane, expand **Filter**.
101-
3. Observe that the filter type is set to Lua and the `geoid` field is selected for use in the Lua code. Recall that `geoid` was specified in the output schema of the Geofence window.
102-
4. Observe the following Lua code, which filters out matches with null values:
101+
3. Observe that the filter type is set to Python and the `geoid` field is selected for use in the Python code. Recall that `geoid` was specified in the output schema of the Geofence window.
102+
4. Observe the following Python code, which filters out matches with null values:
103103

104104
```
105-
function filter(data)
106-
return data.geoid ~= nil
107-
end
105+
def filter(event,context):
106+
return "geoid" in event and event["geoid"] is not None
108107
```
109108
5. Expand **Subscriber Connectors**. Observe that there is a subscriber connector that writes output to a file called `result.out`. <br/>Later in these steps you observe how connector orchestration affects the order in which connectors are executed.
110109

0 commit comments

Comments
 (0)