mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-24 06:48:13 -06:00
Add a pure-Python parser (rips.orion_events) that reads an ORIONEVENTS text file into a structured representation, plus an applier that drives the existing WellEventTimeline API to create perforation, WCONHIST and WELTARG events. The parser is split into a stdlib-only Layer A (parse_orion_events -> OrionDocument) that is unit-testable without a running ResInsight, and a Layer B applier (apply_orion_document) that maps the document onto add_perf_event/add_well_keyword_event and resolves well names via the project. RADIUS is mapped to diameter, dated SET variables support '+ N' day arithmetic, and FILTER/PERFID are reserved but currently raise a located error while DSHIFT is ignored with a warning. Ship a documented grammar in the module docstring, a clean sample input (example_input_files/well_events.orion), a runnable example (import_orion_events.py), and tests covering parsing, mapping and an end-to-end integration test against a loaded case.