Skip to content

14484 orion events data filter - #14500

Merged
kriben merged 3 commits into
devfrom
14484-orion-events-data-filter
Aug 10, 2026
Merged

14484 orion events data filter#14500
kriben merged 3 commits into
devfrom
14484-orion-events-data-filter

Conversation

@kriben

@kriben kriben commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Fixes #14484.

kriben added 3 commits August 10, 2026 11:32
Add a typed FILTER declaration to the ORIONEVENTS 2.0 grammar, e.g.
FILTER POROPERM = "PORO > 0.4 AND PERMX > 100.0". A PERFORATION event
references it with FILTER=POROPERM or supplies an inline quoted
expression. When applied, each used filter is materialized as a
case-level combined data filter (one property filter per term, one-sided
inclusive bounds, AND/OR combine mode) and attached to the perforation.

Unqualified result names are searched in STATIC_NATIVE, DYNAMIC_NATIVE
then GENERATED results; a TYPE. qualifier restricts the search. Missing
results raise before any event is applied. apply_orion_document gains an
optional case= parameter defaulting to the project's first case.

RimWellEventPerf carries a RimCellFilter ptr-field with scriptable
AddFilter/cell_filter methods, and the filter is copied onto the
RimPerforationInterval when the timeline materializes completions.
Add a FILTER declaration (referenced by two perforations) and an inline
filter expression to the shipped well_events.orion sample, and extend
import_orion_events.py to pass case= to the applier and list the
combined data filters created from the declarations. Skip schedule
generation gracefully when no events were applied, and give FilterExpr
a __str__ returning the raw expression so variable listings stay
readable.
Declare FILTER HIPORO with a qualified result name (static.PORO) and
reference it from the first perforation, passing case= to the applier
and printing the attached filter per materialized perforation interval.
The FILTER parts are included only when the project has a loaded case,
so the example keeps working in caseless projects.
@kriben
kriben force-pushed the 14484-orion-events-data-filter branch from cdf0569 to 696cf77 Compare August 10, 2026 09:33
@kriben kriben self-assigned this Aug 10, 2026
@kriben
kriben marked this pull request as ready for review August 10, 2026 10:21
@kriben
kriben merged commit 450d567 into dev Aug 10, 2026
21 checks passed
@kriben
kriben deleted the 14484-orion-events-data-filter branch August 10, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Orion Events: parse and apply data filter

2 participants