2.4 KiB
2.4 KiB
Segment growth rate
The segment growth rate calculation is useful when the ILI comparison is unable to get good results.
Before performing any comparison or analysis between two ILI reports, the user must verify the following parameters are consistent across both inspections:
- Detection Threshold: Ensure the detection threshold is the same in both ILI reports.
- Reporting Threshold: Ensure the reporting threshold is the same in both ILI reports.
- Tool Tolerances: Ensure the specified tool tolerances are the same in both ILI reports.
Failure to verify these parameters may result in inaccurate comparison or false growth assessments.
Input
Arguments
org_id: as string which should be a validuuidfor the organizationproject_id: the id of the data project where the pipeline data is foundpipeline_id: aarrayof string values representing a validuuidfor a pipelineolder_ili_id: aarrayof string values representing a validuuidfor an ili report sequencenewer_ili_id: aarrayof string values representing a validuuidfor an ili report sequenceinitial_segment_length: afloatvaluedepth_histogram_width: afloatvaluelength_histogram_width: afloatvaluemaximum_segment_length: afloatvalueminimum_segment_length: afloatvaluegrowth_rate_type: astringwhose values should be one ofmeanmaximum
confidence: astringwhose value should be one ofhighlow
Creating the function on the platform
To create this function on the platform using the cli set up the port forwarding as shown in README.
Then run the following command to create the function.
cargo run functions create \
-f functions/acr_segment_growth_rate \
-d "Run the segment growth rate calculation" \
-i org_id=string \
-i project_id=string \
-i pipeline_id=array \
-i older_ili_id=array \
-i newer_ili_id=array \
-i initial_segment_length=integer \
-i growth_rate_type=string \
-i depth_histogram_width=float \
-i length_histogram_width=float \
-i confidence=float \
-i maximum_segment_length=float \
-i minimum_segment_length=string
Testing the function locally
You can run and test the function locally by running
cargo run
Then you can check it work with curl as follows
curl localhost:8080 -d $(jq '. | tojson' functions/acr_segment_growth_rate/example_input.json)