Structure of the functions
Last updated
Last updated
All models are done as built-in functions, helping to do any analysis.
All og.model functions return a structure with log and result.
Log: debugging tool, we can see debug, info, warnings, and error messages. Very important to check errors at the specific function calling data.
Result: Desire output, can be a single value or a map.
Interventions -> Section -> Run -> Operations
How it works
For CURRENT date (now, last x min, etc)
The algorithm finds the active intervention, last section, and ACTIVE RUN and Fluid. This mode does not need the dates on intervention and runs.
For one SELECTED TIME (historical)
The algorithm finds the intervention date interval (can be active, finished, or schedule), go to the last section and see if there is some RUN where the interval fits the SELECTED TIME (end date), otherwise go to the next section. For this mode is mandatory to set all dates interval.
Set the interventionID, sectionIndex and runIndex
In this mode all og.model functions can receive as input the: interventionId, drillingSectionPosIndex and runPosIndex