Worked examples

The worked examples are children, measurements and parents with their inputs and the scores the scheme gives them. They are the tests that every implementation of the scheme runs, and the tables below are built from one file, so this page cannot disagree with it. The file is ghfdb/qc/worked_examples.json in the package, and it is the single source of every example.

Each example names the tests that assert it, in the last column, and links the file that holds them. The tests of the GHFDB portal assert the examples that the portal also holds, with the same inputs and the same expected scores. The examples for the rules that the corrigendum of Fuchs et al. (2023) added are asserted by this package’s tests alone.

How to read the tables

  • Inputs are given by field code. A field that is not listed is empty. A field with several values lists them separated by commas. The legend below names each field code.

  • Expected gives only the values the example asserts. A T-score or TC-score that reads not determined is empty, and is never 0.

  • no mark and missing-information mark say whether the score or the M-score carries the mark. The M-score of a child carries it as an x.

  • own scores are the T-score and the TC-score of the child’s gradient and conductivity before the child’s own corrections are applied. They are given for a child only where they are asserted. See the overview.

  • own T-score and own TC-score mark an example that scores a gradient or a conductivity on its own, without a child. Its score then applies none of the child’s correction rules, unless a correction field is listed among its inputs.

The fields the examples use

Field code

Published column name

Name

P6

elevation

Elevation (Geographical)

P12

explo_method

Type of exploration method

C1

qc

Heat-flow value child

C2

qc_uncertainty

Heat-flow uncertainty child

C4

q_top

Heat-flow interval top

C5

q_bottom

Heat-flow interval bottom

C6

probe_penetration

Penetration depth

C11

corr_IS_flag

Flag in-situ thermal properties

C12

corr_T_flag

Flag temperature corrections (instrumental correction)

C13

corr_S_flag

Flag sedimentation effect (heat flow correction)

C14

corr_E_flag

Flag erosion effect (heat-flow correction)

C15

corr_TOPO_flag

Flag topographic effect (heat-flow correction)

C16

corr_PAL_flag

Flag paleoclimatic effect (heat-flow correction)

C17

corr_SUR_flag

Flag transient surface temperature (heat-flow correction)

C18

corr_CONV_flag

Flag convection processes (heat-flow correction)

C19

corr_HR_flag

Flag heat refraction effect (heat-flow correction)

C23

probe_tilt

Probe tilt

C31

T_method_top

Temperature method (top)

C32

T_method_bottom

Temperature method (bottom)

C37

T_number

Number of temperature recordings

C41

tc_source

Thermal conductivity source

C42

tc_location

Thermal conductivity location

C43

tc_method

Thermal conductivity method

C44

tc_saturation

Thermal conductivity saturation

C45

tc_pT_conditions

Thermal conductivity pT conditions

C47

tc_number

TC number

Which rules score a child

Example

What it shows

Inputs

Expected

Tests

RT-01

Exploration method [Probing (onshore, lake, river, etc.)]

P12 = [Probing (onshore, lake, river, etc.)]

rules probe sensing

TestRoute::test_probing_methods_route_to_the_probe_rules[probing_onshore]

RT-02

Exploration method [Probing (offshore, ocean)]

P12 = [Probing (offshore, ocean)]

rules probe sensing

TestRoute::test_probing_methods_route_to_the_probe_rules[probing_offshore]

RT-03

Exploration method [Probing (clustered)]

P12 = [Probing (clustered)]

rules probe sensing

TestRoute::test_probing_methods_route_to_the_probe_rules[probing_clustering]

RT-04

Exploration method [Drilling]

P12 = [Drilling]

rules borehole and mine

TestRoute::test_excavation_and_indirect_methods_route_to_the_borehole_rules[drilling]

RT-05

Exploration method [Drilling (clustered)]

P12 = [Drilling (clustered)]

rules borehole and mine

TestRoute::test_excavation_and_indirect_methods_route_to_the_borehole_rules[drilling_clustering]

RT-06

Exploration method [Mining]

P12 = [Mining]

rules borehole and mine

TestRoute::test_excavation_and_indirect_methods_route_to_the_borehole_rules[mining]

RT-07

Exploration method [Tunneling]

P12 = [Tunneling]

rules borehole and mine

TestRoute::test_excavation_and_indirect_methods_route_to_the_borehole_rules[tunneling]

RT-08

Exploration method [Indirect (GTM, BSR, CPD, etc.)]

P12 = [Indirect (GTM, BSR, CPD, etc.)]

rules borehole and mine

TestRoute::test_excavation_and_indirect_methods_route_to_the_borehole_rules[indirect]

RT-09

Exploration method [Other]

P12 = [Other]

rules not determined

TestRoute::test_other_unspecified_and_empty_methods_are_not_determined[other]

RT-10

Exploration method [Unspecified]

P12 = [Unspecified]

rules not determined

TestRoute::test_other_unspecified_and_empty_methods_are_not_determined[unspecified]

RT-11

Exploration method empty

—

rules not determined

TestRoute::test_other_unspecified_and_empty_methods_are_not_determined[None]

U-score

Example

What it shows

Inputs

Expected

Tests

U-01

Uncertainty 4.9 on a value of 100: 4.9 %

C1 = 100, C2 = 4.9

U-score U1

TestUScore::test_bands_take_the_upper_bound_into_the_better_class[100-4.9-U1]

U-02

Uncertainty 5 on a value of 100: 5 %

C1 = 100, C2 = 5

U-score U2

TestUScore::test_bands_take_the_upper_bound_into_the_better_class[100-5-U2]

U-03

Uncertainty 15 on a value of 100: 15 %

C1 = 100, C2 = 15

U-score U2

TestUScore::test_bands_take_the_upper_bound_into_the_better_class[100-15-U2]

U-04

Uncertainty 15.1 on a value of 100: 15.1 %

C1 = 100, C2 = 15.1

U-score U3

TestUScore::test_bands_take_the_upper_bound_into_the_better_class[100-15.1-U3]

U-05

Uncertainty 25 on a value of 100: 25 %

C1 = 100, C2 = 25

U-score U3

TestUScore::test_bands_take_the_upper_bound_into_the_better_class[100-25-U3]

U-06

Uncertainty 25.1 on a value of 100: 25.1 %

C1 = 100, C2 = 25.1

U-score U4

TestUScore::test_bands_take_the_upper_bound_into_the_better_class[100-25.1-U4]

U-07

Uncertainty 80 on a value of 100: 80 %

C1 = 100, C2 = 80

U-score U4

TestUScore::test_bands_take_the_upper_bound_into_the_better_class[100-80-U4]

U-08

The coefficient is rounded to six places before banding (4.9999996 on 100)

C1 = 100, C2 = 4.9999996

U-score U2

TestUScore::test_the_coefficient_is_rounded_to_six_places_before_banding[4.9999996-U2]

U-09

The coefficient is rounded to six places before banding (15.0000004 on 100)

C1 = 100, C2 = 15.0000004

U-score U2

TestUScore::test_the_coefficient_is_rounded_to_six_places_before_banding[15.0000004-U2]

U-10

The coefficient is rounded to six places before banding (25.0000004 on 100)

C1 = 100, C2 = 25.0000004

U-score U3

TestUScore::test_the_coefficient_is_rounded_to_six_places_before_banding[25.0000004-U3]

U-11

The coefficient is rounded to six places before banding (25.000001 on 100)

C1 = 100, C2 = 25.000001

U-score U4

TestUScore::test_the_coefficient_is_rounded_to_six_places_before_banding[25.000001-U4]

U-12

Value or uncertainty empty or zero

C2 = 5

U-score Ux

TestUScore::test_an_empty_or_zero_value_or_uncertainty_is_not_determined[None-5]

U-13

Value or uncertainty empty or zero

C1 = 0, C2 = 5

U-score Ux

TestUScore::test_an_empty_or_zero_value_or_uncertainty_is_not_determined[0-5]

U-14

Value or uncertainty empty or zero

C1 = 100

U-score Ux

TestUScore::test_an_empty_or_zero_value_or_uncertainty_is_not_determined[100-None]

U-15

Value or uncertainty empty or zero

C1 = 100, C2 = 0

U-score Ux

TestUScore::test_an_empty_or_zero_value_or_uncertainty_is_not_determined[100-0]

U-16

A negative value is read as a magnitude (-40 with 12)

C1 = -40, C2 = 12

U-score U4

TestUScore::test_a_negative_value_is_read_as_a_magnitude

U-17

A negative uncertainty is read as a magnitude (40 with -1.9)

C1 = 40, C2 = -1.9

U-score U1

TestUScore::test_a_negative_value_is_read_as_a_magnitude

Probe sensing: T-score

Example

What it shows

Inputs

Expected

Tests

PT-01

Penetration 10.01 m

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 10.01, C23 = 0, C37 = 6

T-score 1.2, no mark

TestProbeGradient::test_penetration_bins_are_tried_largest_first[10.01-0.1]

PT-02

Penetration 10 m

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 10, C23 = 0, C37 = 6

T-score 1.1, no mark

TestProbeGradient::test_penetration_bins_are_tried_largest_first[10-0.0]

PT-03

Penetration 3.01 m

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 3.01, C23 = 0, C37 = 6

T-score 1.1, no mark

TestProbeGradient::test_penetration_bins_are_tried_largest_first[3.01-0.0]

PT-04

Penetration 3 m

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 3, C23 = 0, C37 = 6

T-score 1.0, no mark

TestProbeGradient::test_penetration_bins_are_tried_largest_first[3--0.1]

PT-05

Penetration 1.01 m

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 1.01, C23 = 0, C37 = 6

T-score 1.0, no mark

TestProbeGradient::test_penetration_bins_are_tried_largest_first[1.01--0.1]

PT-06

Penetration 1 m

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 1, C23 = 0, C37 = 6

T-score 0.9, no mark

TestProbeGradient::test_penetration_bins_are_tried_largest_first[1--0.2]

PT-07

6 temperature recordings

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 5, C23 = 0, C37 = 6

T-score 1.1, no mark

TestProbeGradient::test_recording_bins_distinguish_two_from_fewer_and_more[6-0.1]

PT-08

5 temperature recordings

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 5, C23 = 0, C37 = 5

T-score 1.0, no mark

TestProbeGradient::test_recording_bins_distinguish_two_from_fewer_and_more[5-0.0]

PT-09

3 temperature recordings

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 5, C23 = 0, C37 = 3

T-score 1.0, no mark

TestProbeGradient::test_recording_bins_distinguish_two_from_fewer_and_more[3-0.0]

PT-10

2 temperature recordings

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 5, C23 = 0, C37 = 2

T-score 0.9, no mark

TestProbeGradient::test_recording_bins_distinguish_two_from_fewer_and_more[2--0.1]

PT-11

1 temperature recordings

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 5, C23 = 0, C37 = 1

T-score 0.8, no mark

TestProbeGradient::test_recording_bins_distinguish_two_from_fewer_and_more[1--0.2]

PT-12

Elevation -2500.01 m

P12 = [Probing (offshore, ocean)], P6 = -2500.01, C6 = 5, C23 = 0, C37 = 6

T-score 1.1, no mark

TestProbeGradient::test_water_depth_bins_read_the_depth_below_sea_level[-2500.01-0.0]

PT-13

Elevation -2500 m

P12 = [Probing (offshore, ocean)], P6 = -2500, C6 = 5, C23 = 0, C37 = 6

T-score 1.0, no mark

TestProbeGradient::test_water_depth_bins_read_the_depth_below_sea_level[-2500--0.1]

PT-14

Elevation -1500.01 m

P12 = [Probing (offshore, ocean)], P6 = -1500.01, C6 = 5, C23 = 0, C37 = 6

T-score 1.0, no mark

TestProbeGradient::test_water_depth_bins_read_the_depth_below_sea_level[-1500.01--0.1]

PT-15

Elevation -1500 m

P12 = [Probing (offshore, ocean)], P6 = -1500, C6 = 5, C23 = 0, C37 = 6

T-score 0.9, no mark

TestProbeGradient::test_water_depth_bins_read_the_depth_below_sea_level[-1500--0.2]

PT-16

Elevation 0: no water depth

P12 = [Probing (offshore, ocean)], P6 = 0, C6 = 5, C23 = 0, C37 = 6

T-score 0.9, missing-information mark

TestProbeGradient::test_an_elevation_at_or_above_sea_level_counts_as_empty[0]

PT-17

Elevation 120: no water depth

P12 = [Probing (offshore, ocean)], P6 = 120, C6 = 5, C23 = 0, C37 = 6

T-score 0.9, missing-information mark

TestProbeGradient::test_an_elevation_at_or_above_sea_level_counts_as_empty[120]

PT-18

Elevation empty: no water depth

P12 = [Probing (offshore, ocean)], C6 = 5, C23 = 0, C37 = 6

T-score 0.9, missing-information mark

TestProbeGradient::test_an_elevation_at_or_above_sea_level_counts_as_empty[None]

PT-19

Tilt 30.01 degrees

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 5, C23 = 30.01, C37 = 6

T-score 0.9, no mark

TestProbeGradient::test_tilt_bins[30.01--0.2]

PT-20

Tilt 30 degrees

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 5, C23 = 30, C37 = 6

T-score 1.0, no mark

TestProbeGradient::test_tilt_bins[30--0.1]

PT-21

Tilt 10.01 degrees

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 5, C23 = 10.01, C37 = 6

T-score 1.0, no mark

TestProbeGradient::test_tilt_bins[10.01--0.1]

PT-22

Tilt 10 degrees

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 5, C23 = 10, C37 = 6

T-score 1.1, no mark

TestProbeGradient::test_tilt_bins[10-0.0]

PT-23

Tilt corrected waives the tilt criterion, even with an empty tilt

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 5, C37 = 6, C12 = [Tilt corrected]

T-score 1.1, no mark

TestProbeGradient::test_a_corrected_tilt_is_waived_even_when_the_tilt_is_empty

PT-24

A bottom-water correction waives the water depth criterion, even with an empty elevation

P12 = [Probing (offshore, ocean)], C6 = 5, C23 = 0, C37 = 6, C17 = [Present and corrected]

T-score 1.1, no mark

TestProbeGradient::test_a_corrected_bottom_water_is_waived_even_when_the_elevation_is_empty

PT-25

No penetration and no tilt recorded

P12 = [Probing (offshore, ocean)], P6 = -3000, C37 = 6

T-score 0.7, missing-information mark

TestProbeGradient::test_a_gradient_without_probe_metadata_has_empty_penetration_and_tilt

PT-26

Number of temperature recordings empty

P12 = [Probing (offshore, ocean)], P6 = -3000, C6 = 5, C23 = 0

T-score 0.8, missing-information mark

TestProbeGradient::test_empty_recordings_take_the_largest_penalty_and_the_mark

Probe sensing: TC-score

Example

What it shows

Inputs

Expected

Tests

PC-01

The best inputs

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 4

TC-score 1.2, no mark

TestProbeConductivity::test_the_best_inputs_reach_the_top_of_the_scale

PC-02

4 conductivity measurements

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 4

TC-score 1.2, no mark

TestProbeConductivity::test_number_bins[4-0.0]

PC-03

3 conductivity measurements

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 3

TC-score 1.1, no mark

TestProbeConductivity::test_number_bins[3--0.1]

PC-04

2 conductivity measurements

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 2

TC-score 1.1, no mark

TestProbeConductivity::test_number_bins[2--0.1]

PC-05

1 conductivity measurements

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 1

TC-score 1.0, no mark

TestProbeConductivity::test_number_bins[1--0.2]

PC-06

A literature location: the number is not scored, even when empty

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Literature or unspecified], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions]

TC-score 1.0, no mark

TestProbeConductivity::test_the_number_is_not_scored_for_a_literature_location

PC-07

Saturation empty

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Probe - pulse technique], C45 = [Actual in-situ (pT) conditions], C47 = 4

TC-score 0.9, missing-information mark

TestProbeConductivity::test_any_empty_saturation_input_takes_the_largest_penalty_and_the_mark[saturation-0.9]

PC-08

Method empty

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 4

TC-score 0.6, missing-information mark

TestProbeConductivity::test_any_empty_saturation_input_takes_the_largest_penalty_and_the_mark[method-0.6]

PC-09

Source empty

P12 = [Probing (offshore, ocean)], C42 = [Actual heat-flow location], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 4

TC-score 0.9, missing-information mark

TestProbeConductivity::test_any_empty_saturation_input_takes_the_largest_penalty_and_the_mark[source-0.9]

PC-10

Location empty: the saturation row that holds does not name it, so the saturation is +0.1, and the location itself takes -0.2 with the mark, so TC is 1.0

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 4

TC-score 1.0, missing-information mark

TestWorkedExamples::test_every_example_scores_as_expected[PC-10]

PC-11

Saturation recorded as unspecified

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Probe - pulse technique], C44 = [Unspecified], C45 = [Actual in-situ (pT) conditions], C47 = 4

TC-score 0.9, no mark

TestProbeConductivity::test_an_explicit_unspecified_saturation_is_a_value_and_is_not_marked

PC-12

Two locations: the poorest counts

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], [Other location], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 4

TC-score 1.1, no mark

TestProbeConductivity::test_the_poorest_of_several_locations_counts

PC-13

Actual in-situ pT with a laboratory method

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Lab - line source - full space], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 4

TC-score 0.6, no mark

TestProbeConductivity::test_an_actual_in_situ_pT_needs_the_pulse_probe_to_score_well

PC-14

pT conditions empty

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C47 = 4

TC-score 0.9, missing-information mark

TestProbeConductivity::test_empty_pT_conditions_take_the_largest_penalty_and_the_mark

PC-15

Two conductivity methods, one laboratory and one an estimate: the laboratory rows do not hold, so the saturation takes -0.2 and TC is 0.6

P12 = [Probing (offshore, ocean)], C41 = [Assumed from literature], C42 = [Literature or unspecified], C43 = [Lab - line source - full space], [Estimation - from lithology and literature], C44 = [Saturated measured], C45 = [Replicated in-situ (pT)]

TC-score 0.6, no mark

TestProbeTCScore::test_worked_example[PC-15]

PC-16

A laboratory conductivity with the source empty: the laboratory row holds without the source, so the saturation is 0 and TC is 1.0, with no mark

P12 = [Probing (onshore, lake, river, etc.)], C42 = [Actual heat-flow location], C43 = [Lab - line source - full space], C44 = [Saturated measured], C45 = [Replicated in-situ (pT)], C47 = 4

TC-score 1.0, no mark

TestWorkedExamples::test_every_example_scores_as_expected[PC-16]

PC-17

Replicated in-situ pT with the method empty: the pT row holds without the method, so the pT is 0, but the saturation row needs the method, so it is -0.2 with the mark and TC is 0.8

P12 = [Probing (offshore, ocean)], C41 = [In-situ probe], C42 = [Actual heat-flow location], C44 = [Saturated measured in-situ], C45 = [Replicated in-situ (pT)], C47 = 4

TC-score 0.8, missing-information mark

TestWorkedExamples::test_every_example_scores_as_expected[PC-17]

Borehole and mine: T-score

Example

What it shows

Inputs

Expected

Tests

BT-01

Four recordings of an equilibrium log: a continuous log

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 4, C31 = [LOGeq], C32 = [LOGeq]

T-score 1.1, no mark

TestBoreholeGradient::test_a_continuous_log_needs_more_than_three_recordings

BT-02

Three recordings of the same log: multiple single points

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 3, C31 = [LOGeq], C32 = [LOGeq]

T-score 0.9, no mark

TestBoreholeGradient::test_a_continuous_log_needs_more_than_three_recordings

BT-03

A perturbed log at the top

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 10, C31 = [LOGpert], C32 = [LOGeq]

T-score 0.9, no mark

TestBoreholeGradient::test_a_continuous_log_with_a_perturbed_method_is_penalised

BT-04

A log at the top and a bottom-hole temperature at the bottom

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 10, C31 = [LOGeq], C32 = [BHT]

T-score 0.7, no mark

TestBoreholeGradient::test_a_non_log_method_makes_the_case_single_points

BT-05

Surface at the top, [cBHT] at the bottom

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 2, C31 = [SUR], C32 = [cBHT]

T-score 0.7, no mark

TestBoreholeGradient::test_the_surface_case_is_decided_by_the_bottom_method_alone[cBHT--0.3]

BT-06

Surface at the top, [BHT] at the bottom

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 2, C31 = [SUR], C32 = [BHT]

T-score 0.5, no mark

TestBoreholeGradient::test_the_surface_case_is_decided_by_the_bottom_method_alone[BHT--0.5]

BT-07

Surface at the top, [CPD] at the bottom

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 2, C31 = [SUR], C32 = [CPD]

T-score 0.4, no mark

TestBoreholeGradient::test_the_surface_case_is_decided_by_the_bottom_method_alone[CPD--0.6]

BT-08

Surface at the top, [Other] at the bottom

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 2, C31 = [SUR], C32 = [Other]

T-score 0.4, no mark

TestBoreholeGradient::test_the_surface_case_is_decided_by_the_bottom_method_alone[other--0.6]

BT-09

[HT-FTeq] at top and bottom

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 2, C31 = [HT-FTeq], C32 = [HT-FTeq]

T-score 0.9, no mark

TestBoreholeGradient::test_the_misspelt_toolbox_tokens_read_as_the_vocabulary_methods[HT_FT--0.1]

BT-10

[HT-FTpert] at top and bottom

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 2, C31 = [HT-FTpert], C32 = [HT-FTpert]

T-score 0.7, no mark

TestBoreholeGradient::test_the_misspelt_toolbox_tokens_read_as_the_vocabulary_methods[HT_FTpert--0.3]

BT-11

A method that fits no case (DTSeq with two recordings)

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 2, C31 = [DTSeq], C32 = [DTSeq]

T-score 0.5, missing-information mark

TestBoreholeGradient::test_a_method_that_fits_no_case_takes_the_largest_penalty_and_the_mark

BT-12

Both temperature methods empty

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 10

T-score 0.5, missing-information mark

TestBoreholeGradient::test_empty_methods_take_the_largest_penalty_and_the_mark

BT-13

Both temperature methods unspecified

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 10, C31 = [Unspecified], C32 = [Unspecified]

T-score 0.5, no mark

TestBoreholeGradient::test_an_explicit_unspecified_method_is_a_value_and_is_not_marked

BT-14

Two methods at the top: the poorest counts

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 2, C31 = [cBHT], [CPD], C32 = [cBHT]

T-score 0.5, no mark

TestBoreholeGradient::test_the_poorest_of_several_methods_counts

BT-15

[cDTS] at top and bottom with three recordings: it fits no group

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 3, C31 = [cDTS], C32 = [cDTS]

T-score 0.5, missing-information mark

TestBoreholeTScore::test_worked_example[BT-15]

Borehole and mine: TC-score

Example

What it shows

Inputs

Expected

Tests

BC-01

The best inputs, with the pT conditions scored alone

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 1.0, no mark

TestBoreholeConductivity::test_the_best_uncorrected_inputs_score_one

BC-02

Only the top of the interval reported

P12 = [Drilling], C4 = 0, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 1.0, no mark

TestBoreholeConductivity::test_one_reported_depth_passes_the_gate[depths0]

BC-03

Only the bottom of the interval reported

P12 = [Drilling], C5 = 500, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 1.0, no mark

TestBoreholeConductivity::test_one_reported_depth_passes_the_gate[depths1]

BC-04

Neither top nor bottom of the interval reported

P12 = [Drilling], C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.1, missing-information mark

TestBoreholeConductivity::test_neither_depth_gives_the_fixed_minimum_and_the_mark

BC-05

Location empty

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.8, missing-information mark

TestBoreholeConductivity::test_an_empty_location_takes_the_largest_penalty_and_the_mark

BC-06

Source [In-situ probe]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [In-situ probe], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 1.1, no mark

TestBoreholeConductivity::test_source_penalties[insitu_probe-0.1]

BC-07

Source [Core-log integration]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core-log integration], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 1.1, no mark

TestBoreholeConductivity::test_source_penalties[core_log-0.1]

BC-08

Source [Core samples]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 1.0, no mark

TestBoreholeConductivity::test_source_penalties[core_samples-0.0]

BC-09

Source [Cutting samples]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Cutting samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.9, no mark

TestBoreholeConductivity::test_source_penalties[cutting_samples--0.1]

BC-10

Source [Outcrop samples]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Outcrop samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.9, no mark

TestBoreholeConductivity::test_source_penalties[outcrop_samples--0.1]

BC-11

Source [Well-log interpretation]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Well-log interpretation], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.9, no mark

TestBoreholeConductivity::test_source_penalties[well_log--0.1]

BC-12

Source [Mineral computation]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Mineral computation], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.8, no mark

TestBoreholeConductivity::test_source_penalties[mineral_computation--0.2]

BC-13

Source [Assumed from literature]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Assumed from literature], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.8, no mark

TestBoreholeConductivity::test_source_penalties[assumed_from_literature--0.2]

BC-14

Source [Other]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Other], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.8, no mark

TestBoreholeConductivity::test_source_penalties[other--0.2]

BC-15

Source [Unspecified]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Unspecified], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.8, no mark

TestBoreholeConductivity::test_source_penalties[unspecified--0.2]

BC-16

Source empty

P12 = [Drilling], C4 = 0, C5 = 1000, C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.8, missing-information mark

TestBoreholeConductivity::test_an_empty_source_takes_the_largest_penalty_and_the_mark

BC-17

16 conductivity measurements

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 16

own TC-score 1.0, no mark

TestBoreholeConductivity::test_number_bins[16-0.0]

BC-18

15 conductivity measurements

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 15

own TC-score 0.9, no mark

TestBoreholeConductivity::test_number_bins[15--0.1]

BC-19

Number of conductivity measurements empty

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions]

own TC-score 0.9, missing-information mark

TestBoreholeConductivity::test_an_empty_number_takes_the_largest_penalty_and_the_mark

BC-20

Saturation [Saturated measured in-situ]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 1.0, no mark

TestBoreholeConductivity::test_saturation_penalties[saturatedInSitu-0.0]

BC-21

Saturation [Saturated measured]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 1.0, no mark

TestBoreholeConductivity::test_saturation_penalties[saturatedMeasured-0.0]

BC-22

Saturation [Saturated calculated]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated calculated], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.9, no mark

TestBoreholeConductivity::test_saturation_penalties[saturatedCalculated--0.1]

BC-23

Saturation [Recovered]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Recovered], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.9, no mark

TestBoreholeConductivity::test_saturation_penalties[recovered--0.1]

BC-24

Saturation [Dry measured]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Dry measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.8, no mark

TestBoreholeConductivity::test_saturation_penalties[dryMeasured--0.2]

BC-25

Saturation [Other]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Other], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.8, no mark

TestBoreholeConductivity::test_saturation_penalties[other--0.2]

BC-26

Saturation [Unspecified]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Unspecified], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 0.8, no mark

TestBoreholeConductivity::test_saturation_penalties[unspecified--0.2]

BC-27

pT conditions [Actual in-situ (pT) conditions], scored alone

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

own TC-score 1.0, no mark

TestBoreholeConductivity::test_uncorrected_pT_is_scored_on_its_own_terms[actualInSitu-0.0]

BC-28

pT conditions [Replicated in-situ (pT)], scored alone

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Replicated in-situ (pT)], C47 = 30

own TC-score 1.0, no mark

TestBoreholeConductivity::test_uncorrected_pT_is_scored_on_its_own_terms[replicatedPT-0.0]

BC-29

pT conditions [Corrected in-situ (pT)], scored alone

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (pT)], C47 = 30

own TC-score 1.0, no mark

TestBoreholeConductivity::test_uncorrected_pT_is_scored_on_its_own_terms[correctedPT-0.0]

BC-30

pT conditions [Replicated in-situ (p)], scored alone

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Replicated in-situ (p)], C47 = 30

own TC-score 0.9, no mark

TestBoreholeConductivity::test_uncorrected_pT_is_scored_on_its_own_terms[replicatedP--0.1]

BC-31

pT conditions [Replicated in-situ (T)], scored alone

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Replicated in-situ (T)], C47 = 30

own TC-score 0.9, no mark

TestBoreholeConductivity::test_uncorrected_pT_is_scored_on_its_own_terms[replicatedT--0.1]

BC-32

pT conditions [Corrected in-situ (p)], scored alone

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (p)], C47 = 30

own TC-score 0.9, no mark

TestBoreholeConductivity::test_uncorrected_pT_is_scored_on_its_own_terms[correctedP--0.1]

BC-33

pT conditions [Corrected in-situ (T)], scored alone

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (T)], C47 = 30

own TC-score 0.9, no mark

TestBoreholeConductivity::test_uncorrected_pT_is_scored_on_its_own_terms[correctedT--0.1]

BC-34

pT conditions [Recorded ambient pT conditions], scored alone

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Recorded ambient pT conditions], C47 = 30

own TC-score 0.8, no mark

TestBoreholeConductivity::test_uncorrected_pT_is_scored_on_its_own_terms[recordedAmbient--0.2]

BC-35

pT conditions [Unrecorded ambient pT conditions], scored alone

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Unrecorded ambient pT conditions], C47 = 30

own TC-score 0.8, no mark

TestBoreholeConductivity::test_uncorrected_pT_is_scored_on_its_own_terms[unrecordedAmbient--0.2]

BC-36

pT conditions [Unspecified], scored alone

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Unspecified], C47 = 30

own TC-score 0.8, no mark

TestBoreholeConductivity::test_uncorrected_pT_is_scored_on_its_own_terms[unspecified--0.2]

BC-37

pT conditions empty

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C47 = 30

own TC-score 0.8, missing-information mark

TestBoreholeConductivity::test_empty_pT_conditions_take_the_largest_penalty_and_the_mark

BC-38

Two pT conditions: the poorest counts

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], [Recorded ambient pT conditions], C47 = 30

own TC-score 0.8, no mark

TestBoreholeConductivity::test_the_poorest_of_several_pT_conditions_counts

BC-39

pT conditions [Corrected in-situ (pT)] with the in-situ correction [Pressure and temperature considered]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (pT)], C47 = 30, C11 = [Pressure and temperature considered]

TC-score 1.0, no mark

TestBoreholeConductivity::test_the_in_situ_keyword_applies_the_agreement_rule[correctedPT-considered_pt-1.0-False]

BC-40

pT conditions [Corrected in-situ (pT)] with the in-situ correction [Not considered]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (pT)], C47 = 30, C11 = [Not considered]

TC-score 0.8, no mark

TestBoreholeConductivity::test_the_in_situ_keyword_applies_the_agreement_rule[correctedPT-not_considered-0.8-False]

BC-41

pT conditions [Corrected in-situ (T)] with the in-situ correction [Temperature considered]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (T)], C47 = 30, C11 = [Temperature considered]

TC-score 0.9, no mark

TestBoreholeConductivity::test_the_in_situ_keyword_applies_the_agreement_rule[correctedT-considered_t-0.9-False]

BC-42

pT conditions [Corrected in-situ (p)] with the in-situ correction [Pressure considered]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (p)], C47 = 30, C11 = [Pressure considered]

TC-score 0.9, no mark

TestBoreholeConductivity::test_the_in_situ_keyword_applies_the_agreement_rule[correctedP-considered_p-0.9-False]

BC-43

pT conditions [Recorded ambient pT conditions] with the in-situ correction [Not considered]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Recorded ambient pT conditions], C47 = 30, C11 = [Not considered]

TC-score 0.8, no mark

TestBoreholeConductivity::test_the_in_situ_keyword_applies_the_agreement_rule[recordedAmbient-not_considered-0.8-False]

BC-44

pT conditions [Recorded ambient pT conditions] with the in-situ correction [Unspecified]

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Recorded ambient pT conditions], C47 = 30, C11 = [Unspecified]

TC-score 0.8, no mark

TestBoreholeConductivity::test_the_in_situ_keyword_applies_the_agreement_rule[recordedAmbient---0.8-False]

BC-45

pT conditions [Actual in-situ (pT) conditions] with the in-situ correction empty

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 30

TC-score 0.8, missing-information mark

TestBoreholeConductivity::test_the_in_situ_keyword_applies_the_agreement_rule[actualInSitu-None-0.8-True]

BC-46

pT conditions empty, in-situ correction recorded

P12 = [Drilling], C4 = 0, C5 = 1000, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C47 = 30, C11 = [Pressure and temperature considered]

TC-score 0.8, missing-information mark

TestBoreholeConductivity::test_empty_pT_with_an_in_situ_correction_is_still_marked

M-score

The inputs are the child’s T-score and TC-score, and whether each carries the mark.

Example

What it shows

Inputs

Expected

Tests

M-01

T-score 1.0 times TC-score 0.76 = 0.76

T = 1.0, TC = 0.76

M-score M1

TestMScore::test_classes_take_a_boundary_product_into_the_better_class[1.0-0.76-M1]

M-02

T-score 1.0 times TC-score 0.75 = 0.75

T = 1.0, TC = 0.75

M-score M1

TestMScore::test_classes_take_a_boundary_product_into_the_better_class[1.0-0.75-M1]

M-03

T-score 1.0 times TC-score 0.74 = 0.74

T = 1.0, TC = 0.74

M-score M2

TestMScore::test_classes_take_a_boundary_product_into_the_better_class[1.0-0.74-M2]

M-04

T-score 1.0 times TC-score 0.5 = 0.5

T = 1.0, TC = 0.5

M-score M2

TestMScore::test_classes_take_a_boundary_product_into_the_better_class[1.0-0.5-M2]

M-05

T-score 1.0 times TC-score 0.49 = 0.49

T = 1.0, TC = 0.49

M-score M3

TestMScore::test_classes_take_a_boundary_product_into_the_better_class[1.0-0.49-M3]

M-06

T-score 0.5 times TC-score 0.5 = 0.25

T = 0.5, TC = 0.5

M-score M3

TestMScore::test_classes_take_a_boundary_product_into_the_better_class[0.5-0.5-M3]

M-07

T-score 0.5 times TC-score 0.49 = 0.245

T = 0.5, TC = 0.49

M-score M4

TestMScore::test_classes_take_a_boundary_product_into_the_better_class[0.5-0.49-M4]

M-08

T-score 0.1 times TC-score 0.1 = 0.01

T = 0.1, TC = 0.1

M-score M4

TestMScore::test_classes_take_a_boundary_product_into_the_better_class[0.1-0.1-M4]

M-09

0.833 times 0.9 is 0.7497, rounded to 0.750 before the class

T = 0.833, TC = 0.9

M-score M1

TestMScore::test_the_product_is_rounded_to_three_places_before_it_is_classed

M-10

Only the T-score marked

T = 0.9, TC = 0.9, T_marked = true, TC_marked = false

M-score M1x

TestMScore::test_either_marked_sub_score_adds_the_x_suffix[t]

M-11

Only the TC-score marked

T = 0.9, TC = 0.9, T_marked = false, TC_marked = true

M-score M1x

TestMScore::test_either_marked_sub_score_adds_the_x_suffix[tc]

M-12

Both marked

T = 0.9, TC = 0.9, T_marked = true, TC_marked = true

M-score M1x

TestMScore::test_either_marked_sub_score_adds_the_x_suffix[both]

M-13

T-score not determined

T = not determined, TC = 0.9

M-score Mx

TestMScore::test_a_sub_score_that_cannot_be_calculated_gives_mx

M-14

TC-score not determined

T = 0.9, TC = not determined

M-score Mx

TestMScore::test_a_sub_score_that_cannot_be_calculated_gives_mx

M-15

Both not determined, one of them marked

T = not determined, TC = not determined, T_marked = true

M-score Mx

TestMScore::test_a_sub_score_that_cannot_be_calculated_gives_mx

Perturbation flags

Example

What it shows

Inputs

Expected

Tests

PF-01

No correction recorded

—

flags -------

TestPerturbationFlags::test_no_corrections_give_seven_dashes

PF-02

C13 [Present and corrected]

C13 = [Present and corrected]

flags S------

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[S-S-0-present_corrected-True]

PF-03

C14 [Present and corrected]

C14 = [Present and corrected]

flags -E-----

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[E-E-1-present_corrected-True]

PF-04

C15 [Present and corrected]

C15 = [Present and corrected]

flags --T----

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[TOPO-T-2-present_corrected-True]

PF-05

C16 [Present and corrected]

C16 = [Present and corrected]

flags ---P---

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[PAL-P-3-present_corrected-True]

PF-06

C17 [Present and corrected]

C17 = [Present and corrected]

flags ----V--

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[SUR-V-4-present_corrected-True]

PF-07

C18 [Present and corrected]

C18 = [Present and corrected]

flags -----C-

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[CONV-C-5-present_corrected-True]

PF-08

C19 [Present and corrected]

C19 = [Present and corrected]

flags ------R

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[HR-R-6-present_corrected-True]

PF-09

C13 [Present and not corrected]

C13 = [Present and not corrected]

flags s------

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[S-S-0-present_not_corrected-False]

PF-10

C14 [Present and not corrected]

C14 = [Present and not corrected]

flags -e-----

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[E-E-1-present_not_corrected-False]

PF-11

C15 [Present and not corrected]

C15 = [Present and not corrected]

flags --t----

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[TOPO-T-2-present_not_corrected-False]

PF-12

C16 [Present and not corrected]

C16 = [Present and not corrected]

flags ---p---

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[PAL-P-3-present_not_corrected-False]

PF-13

C17 [Present and not corrected]

C17 = [Present and not corrected]

flags ----v--

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[SUR-V-4-present_not_corrected-False]

PF-14

C18 [Present and not corrected]

C18 = [Present and not corrected]

flags -----c-

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[CONV-C-5-present_not_corrected-False]

PF-15

C19 [Present and not corrected]

C19 = [Present and not corrected]

flags ------r

TestPerturbationFlags::test_each_correction_writes_its_own_letter_in_its_own_place[HR-R-6-present_not_corrected-False]

PF-16

C16 [Present and not significant]

C16 = [Present and not significant]

flags ---X---

TestPerturbationFlags::test_the_remaining_statuses[present_not_significant-X]

PF-17

C16 [Not recognized]

C16 = [Not recognized]

flags ---x---

TestPerturbationFlags::test_the_remaining_statuses[not_recognized-x]

PF-18

C16 empty

—

flags -------

TestPerturbationFlags::test_the_remaining_statuses[--]

Inherited code

The inputs are the quality codes of the children a parent could rest on, in order, and C9 where a child’s relevance matters.

Example

What it shows

Inputs

Expected

Tests

IH-01

A parent with no children

children =

U-score Ux, M-score Mx, flags -------, quality code Ux.Mx.-------

TestInherit::test_no_children_is_not_determined

IH-02

One child passes its code up

children = {‘code’: ‘U2.M3x.-e-PX–‘}

U-score U2, M-score M3x, flags -e-PX--, quality code U2.M3x.-e-PX--

TestInherit::test_one_child_passes_its_scores_and_flags_up

IH-03

Children graded U1, U2

children = {‘code’: ‘U1.M1.——-‘}, {‘code’: ‘U2.M1.——-‘}

U-score U2

TestInherit::test_the_poorest_u_score_is_inherited[grades0-U2]

IH-04

Children graded U3, U1, U2

children = {‘code’: ‘U3.M1.——-‘}, {‘code’: ‘U1.M1.——-‘}, {‘code’: ‘U2.M1.——-‘}

U-score U3

TestInherit::test_the_poorest_u_score_is_inherited[grades1-U3]

IH-05

Children graded U4, U3

children = {‘code’: ‘U4.M1.——-‘}, {‘code’: ‘U3.M1.——-‘}

U-score U4

TestInherit::test_the_poorest_u_score_is_inherited[grades2-U4]

IH-06

Children graded U4, Ux, U1

children = {‘code’: ‘U4.M1.——-‘}, {‘code’: ‘Ux.M1.——-‘}, {‘code’: ‘U1.M1.——-‘}

U-score Ux

TestInherit::test_the_poorest_u_score_is_inherited[grades3-Ux]

IH-07

Children graded M1, M3

children = {‘code’: ‘U1.M1.——-‘}, {‘code’: ‘U1.M3.——-‘}

M-score M3

TestInherit::test_any_marked_m_score_is_poorer_than_any_unmarked_and_mx_is_poorest[grades0-M3]

IH-08

Children graded M4, M1x

children = {‘code’: ‘U1.M4.——-‘}, {‘code’: ‘U1.M1x.——-‘}

M-score M1x

TestInherit::test_any_marked_m_score_is_poorer_than_any_unmarked_and_mx_is_poorest[grades1-M1x]

IH-09

Children graded M1x, M4x

children = {‘code’: ‘U1.M1x.——-‘}, {‘code’: ‘U1.M4x.——-‘}

M-score M4x

TestInherit::test_any_marked_m_score_is_poorer_than_any_unmarked_and_mx_is_poorest[grades2-M4x]

IH-10

Children graded M4x, Mx, M2

children = {‘code’: ‘U1.M4x.——-‘}, {‘code’: ‘U1.Mx.——-‘}, {‘code’: ‘U1.M2.——-‘}

M-score Mx

TestInherit::test_any_marked_m_score_is_poorer_than_any_unmarked_and_mx_is_poorest[grades3-Mx]

IH-11

U4 with M1 and U1 with M4

children = {‘code’: ‘U4.M1.——-‘}, {‘code’: ‘U1.M4.——-‘}

U-score U4, M-score M4

TestInherit::test_the_u_and_m_scores_may_come_from_different_children

IH-12

Flags of the child with the poorest U-score

children = {‘code’: ‘U1.M4.S——‘}, {‘code’: ‘U3.M1.-E—–‘}

flags -E-----

TestInherit::test_the_flags_are_those_of_the_child_with_the_poorest_u_score

IH-13

The poorest M-score breaks a tie on the U-score

children = {‘code’: ‘U2.M1.S——‘}, {‘code’: ‘U2.M3x.-E—–‘}, {‘code’: ‘U2.M2.–T—-‘}

flags -E-----

TestInherit::test_the_poorest_m_score_breaks_a_tie_on_the_u_score

IH-14

Two children tie on both scores, in the order S then E

children = {‘code’: ‘U2.M2.S——‘}, {‘code’: ‘U2.M2.-E—–‘}

flags S------

TestInherit::test_a_full_tie_takes_the_first_child_so_recalculation_is_stable

IH-15

The same two children in the order E then S

children = {‘code’: ‘U2.M2.-E—–‘}, {‘code’: ‘U2.M2.S——‘}

flags -E-----

TestInherit::test_a_full_tie_takes_the_first_child_so_recalculation_is_stable

IH-16

An only child marked [Yes]

children = {‘code’: ‘U2.Mx.——-’, ‘C9’: ‘[Yes]’}

U-score U2, M-score Mx, quality code U2.Mx.-------

TestParentQuality::test_an_only_child_passes_its_quality_up_whether_or_not_it_is_relevant

IH-17

An only child marked [No]

children = {‘code’: ‘U2.Mx.——-’, ‘C9’: ‘[No]’}

U-score U2, M-score Mx, quality code U2.Mx.-------

TestParentQuality::test_an_only_child_passes_its_quality_up_whether_or_not_it_is_relevant

IH-18

Two relevant children, U1 and U3

children = {‘code’: ‘U1.Mx.——-’, ‘C9’: ‘[Yes]’}, {‘code’: ‘U3.Mx.——-’, ‘C9’: ‘[Yes]’}

quality code U3.Mx.-------

TestParentQuality::test_several_relevant_children_give_the_poorest_u_score_and_m_score

IH-19

U1 and U2 relevant, U4 not relevant

children = {‘code’: ‘U1.Mx.——-’, ‘C9’: ‘[Yes]’}, {‘code’: ‘U2.Mx.——-’, ‘C9’: ‘[Yes]’}, {‘code’: ‘U4.Mx.——-’, ‘C9’: ‘[No]’}

U-score U2

TestParentQuality::test_a_child_not_marked_relevant_plays_no_part_among_several

IH-20

Several children and none relevant

children = {‘code’: ‘U1.Mx.——-’, ‘C9’: ‘[No]’}, {‘code’: ‘U2.Mx.——-’, ‘C9’: ‘[No]’}

U-score Ux, M-score Mx, quality code Ux.Mx.-------

TestParentQuality::test_several_children_and_none_relevant_is_not_determined

IH-21

Two relevant children scored from conformance cases B2 and B6

children = {‘code’: ‘U1.M1.——-’, ‘C9’: ‘[Yes]’}, {‘code’: ‘U3.M4.——-’, ‘C9’: ‘[Yes]’}

U-score U3, M-score M4

TestParentQuality::test_the_m_score_is_inherited_from_the_children_scored_methods

Whole children

Example

What it shows

Inputs

Expected

Tests

X1-continuous-eq

Continuous equilibrium log, in-situ probe conductivity, no in-situ correction recorded

P12 = [Drilling], C4 = 0, C5 = 1000, C37 = 10, C31 = [LOGeq], C32 = [LOGeq], C41 = [In-situ probe], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 20

U-score Ux, T-score 1.1, TC-score 0.9, M-score M1x, flags -------, quality code Ux.M1x.-------, missing-information mark, own scores T-score 1.1, TC-score 1.1

TestConformance::test_corrected_scores_equal_the_toolbox_output[X1-continuous-eq] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[X1-continuous-eq] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[X1-continuous-eq] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[X1-continuous-eq]

X2-continuous-pert

Continuous perturbed log, core samples, no in-situ correction recorded

P12 = [Drilling], C4 = 0, C5 = 800, C37 = 8, C31 = [LOGpert], C32 = [LOGpert], C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Actual in-situ (pT) conditions], C47 = 10

U-score Ux, T-score 0.9, TC-score 0.7, M-score M2x, flags -------, quality code Ux.M2x.-------, missing-information mark, own scores T-score 0.9, TC-score 0.9

TestConformance::test_corrected_scores_equal_the_toolbox_output[X2-continuous-pert] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[X2-continuous-pert] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[X2-continuous-pert] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[X2-continuous-pert]

X3-multiple-single-points

Two bottom-hole temperatures, recovered core, no in-situ correction recorded

P12 = [Drilling], C4 = 0, C5 = 500, C37 = 2, C31 = [BHT], C32 = [BHT], C41 = [Core samples], C42 = [Other location], C44 = [Recovered], C45 = [Replicated in-situ (T)], C47 = 5

U-score Ux, T-score 0.7, TC-score 0.5, M-score M3x, flags -------, quality code Ux.M3x.-------, missing-information mark, own scores T-score 0.7, TC-score 0.6

TestConformance::test_corrected_scores_equal_the_toolbox_output[X3-multiple-single-points] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[X3-multiple-single-points] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[X3-multiple-single-points] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[X3-multiple-single-points]

X4-single-point-plus-surface

Surface temperature and one bottom-hole temperature, dry cuttings

P12 = [Drilling], C4 = 0, C5 = 300, C37 = 1, C31 = [SUR], C32 = [BHT], C41 = [Cutting samples], C42 = [Other location], C44 = [Dry measured], C45 = [Recorded ambient pT conditions], C47 = 1

U-score Ux, T-score 0.5, TC-score 0.3, M-score M4x, flags -------, quality code Ux.M4x.-------, missing-information mark, own scores T-score 0.5, TC-score 0.3

TestConformance::test_corrected_scores_equal_the_toolbox_output[X4-single-point-plus-surface] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[X4-single-point-plus-surface] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[X4-single-point-plus-surface] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[X4-single-point-plus-surface]

X5-interval-gate

No interval depth reported: the conductivity takes its fixed minimum

P12 = [Drilling], C37 = 6, C31 = [LOGeq], C32 = [LOGeq], C41 = [Assumed from literature], C42 = [Literature or unspecified], C44 = [Unspecified], C45 = [Unspecified]

U-score Ux, T-score 1.1, TC-score 0.1, M-score M4x, flags -------, quality code Ux.M4x.-------, missing-information mark, own scores T-score 1.1, TC-score 0.1

TestConformance::test_corrected_scores_equal_the_toolbox_output[X5-interval-gate] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[X5-interval-gate] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[X5-interval-gate] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[X5-interval-gate]

P1-probe-with-waivers

Probe with a tilt correction and a bottom-water correction, and every flag state

P12 = [Probing (offshore, ocean)], P6 = -3000, C1 = 80, C2 = 4, C6 = 12, C23 = 45, C37 = 6, C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 4, C12 = [Tilt corrected], C13 = [Present and corrected], C14 = [Present and not corrected], C15 = [Present and not significant], C16 = [Not recognized], C17 = [Present and corrected], C18 = [Unspecified]

U-score U2, T-score 1.2, TC-score 1.2, M-score M1, flags SeXxV--, quality code U2.M1.SeXxV--, no mark, own scores T-score 1.0, TC-score 1.2

TestConformance::test_corrected_scores_equal_the_toolbox_output[P1-probe-with-waivers] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[P1-probe-with-waivers] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[P1-probe-with-waivers]

P2-probe-without-corrections

The same probe with no correction recorded

P12 = [Probing (offshore, ocean)], P6 = -3000, C1 = 80, C2 = 4, C6 = 12, C23 = 45, C37 = 6, C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Probe - pulse technique], C44 = [Saturated measured in-situ], C45 = [Actual in-situ (pT) conditions], C47 = 4

U-score U2, T-score 1.0, TC-score 1.2, M-score M1, flags -------, quality code U2.M1.-------, no mark, own scores T-score 1.0, TC-score 1.2

TestConformance::test_corrected_scores_equal_the_toolbox_output[P2-probe-without-corrections] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[P2-probe-without-corrections] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[P2-probe-without-corrections] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[P2-probe-without-corrections]

P3-onshore-lab

Onshore probe, laboratory conductivity, no elevation below sea level, no tilt

P12 = [Probing (onshore, lake, river, etc.)], P6 = 120, C1 = 60, C2 = 9, C6 = 2, C37 = 2, C41 = [Core samples], C42 = [Other location], C43 = [Lab - line source - full space], C44 = [Saturated calculated], C45 = [Recorded ambient pT conditions], C47 = 2

U-score U2, T-score 0.4, TC-score 0.5, M-score M4x, flags -------, quality code U2.M4x.-------, missing-information mark, own scores T-score 0.4, TC-score 0.5

TestConformance::test_corrected_scores_equal_the_toolbox_output[P3-onshore-lab] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[P3-onshore-lab] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[P3-onshore-lab] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[P3-onshore-lab]

P4-clustering-literature

Clustered probing, conductivity estimated from literature, negative heat flow

P12 = [Probing (clustered)], P6 = -1600, C1 = -40, C2 = 12, C6 = 0.8, C23 = 12, C37 = 1, C41 = [Assumed from literature], C42 = [Literature or unspecified], C43 = [Estimation - from lithology and literature], C44 = [Unspecified], C45 = [Unspecified]

U-score U4, T-score 0.4, TC-score 0.5, M-score M4, flags -------, quality code U4.M4.-------, no mark, own scores T-score 0.4, TC-score 0.5

TestConformance::test_corrected_scores_equal_the_toolbox_output[P4-clustering-literature] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[P4-clustering-literature] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[P4-clustering-literature] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[P4-clustering-literature]

P5-no-saturation

Saturation empty, method unspecified: the estimate row for an unspecified method holds without the saturation, so the saturation is -0.2 with no mark and the grade has no mark

P12 = [Probing (offshore, ocean)], P6 = -2000, C1 = 100, C2 = 30, C6 = 4, C23 = 5, C37 = 3, C41 = [In-situ probe], C42 = [Actual heat-flow location], C43 = [Unspecified], C45 = [Replicated in-situ (p)], C47 = 1

U-score U4, T-score 0.9, TC-score 0.5, M-score M3, flags -------, quality code U4.M3.-------, no mark, own scores T-score 0.9, TC-score 0.5

TestWorkedExamples::test_every_example_scores_as_expected[P5-no-saturation]

B1-agreeing-in-situ

Corrected pT with an in-situ correction that agrees

P12 = [Drilling], C1 = 65, C2 = 3, C4 = 100, C5 = 900, C37 = 40, C31 = [LOGeq], C32 = [cLOG], C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (pT)], C47 = 30, C11 = [Pressure and temperature considered]

U-score U1, T-score 1.1, TC-score 1.0, M-score M1, flags -------, quality code U1.M1.-------, no mark, own scores T-score 1.1, TC-score 1.0

TestConformance::test_corrected_scores_equal_the_toolbox_output[B1-agreeing-in-situ] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[B1-agreeing-in-situ] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[B1-agreeing-in-situ]

B2-not-considered

Corrected pT with an in-situ correction recorded as not considered

P12 = [Drilling], C1 = 65, C2 = 3, C4 = 100, C5 = 900, C37 = 40, C31 = [LOGeq], C32 = [cLOG], C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (pT)], C47 = 30, C11 = [Not considered]

U-score U1, T-score 1.1, TC-score 0.8, M-score M1, flags -------, quality code U1.M1.-------, no mark, own scores T-score 1.1, TC-score 1.0

TestConformance::test_corrected_scores_equal_the_toolbox_output[B2-not-considered] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[B2-not-considered] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[B2-not-considered] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[B2-not-considered]

B3-no-in-situ-correction

Corrected pT with no in-situ correction recorded

P12 = [Drilling], C1 = 65, C2 = 3, C4 = 100, C5 = 900, C37 = 40, C31 = [LOGeq], C32 = [cLOG], C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (pT)], C47 = 30

U-score U1, T-score 1.1, TC-score 0.8, M-score M1x, flags -------, quality code U1.M1x.-------, missing-information mark, own scores T-score 1.1, TC-score 1.0

TestConformance::test_corrected_scores_equal_the_toolbox_output[B3-no-in-situ-correction] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[B3-no-in-situ-correction] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[B3-no-in-situ-correction] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[B3-no-in-situ-correction]

B4-mining-ambient

Mining, recorded ambient pT, in-situ correction recorded as unspecified

P12 = [Mining], C1 = 65, C2 = 3, C4 = 100, C5 = 900, C37 = 40, C31 = [LOGeq], C32 = [cLOG], C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Recorded ambient pT conditions], C47 = 30, C11 = [Unspecified]

U-score U1, T-score 1.1, TC-score 0.8, M-score M1, flags -------, quality code U1.M1.-------, no mark, own scores T-score 1.1, TC-score 0.8

TestConformance::test_corrected_scores_equal_the_toolbox_output[B4-mining-ambient] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[B4-mining-ambient] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[B4-mining-ambient] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[B4-mining-ambient]

B5-drilling-clustering

Clustered drilling, replicated p with a pressure-considered correction

P12 = [Drilling (clustered)], C1 = 50, C2 = 10, C4 = 0, C5 = 2000, C37 = 3, C31 = [BHT], [cBHT], C32 = [BHT], C41 = [Cutting samples], C42 = [Other location], C44 = [Recovered], C45 = [Replicated in-situ (p)], C47 = 12, C11 = [Pressure considered]

U-score U3, T-score 0.7, TC-score 0.5, M-score M3, flags -------, quality code U3.M3.-------, no mark, own scores T-score 0.7, TC-score 0.5

TestConformance::test_corrected_scores_equal_the_toolbox_output[B5-drilling-clustering] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[B5-drilling-clustering] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[B5-drilling-clustering]

B6-tunnelling-literature

Tunnelling, literature conductivity, surface and one point

P12 = [Tunneling], C1 = 90, C2 = 20, C4 = 0, C5 = 1500, C37 = 2, C31 = [SUR], C32 = [cBHT], C41 = [Assumed from literature], C42 = [Literature or unspecified], C44 = [Dry measured], C45 = [Unspecified], C11 = [Not considered]

U-score U3, T-score 0.7, TC-score 0.2, M-score M4, flags -------, quality code U3.M4.-------, no mark, own scores T-score 0.7, TC-score 0.2

TestConformance::test_corrected_scores_equal_the_toolbox_output[B6-tunnelling-literature] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[B6-tunnelling-literature] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[B6-tunnelling-literature] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[B6-tunnelling-literature]

B7-unresolvable-surface-case

Surface case with a bottom method it does not list, and an uncertainty of zero

P12 = [Drilling], C1 = 90, C2 = 0, C4 = 0, C5 = 1500, C37 = 2, C31 = [SUR], C32 = [LOGeq], C41 = [Mineral computation], C42 = [Actual heat-flow location], C44 = [Saturated calculated], C45 = [Actual in-situ (pT) conditions], C47 = 20, C11 = [Pressure and temperature considered]

U-score Ux, T-score 0.4, TC-score 0.7, M-score M3x, flags -------, quality code Ux.M3x.-------, missing-information mark, own scores T-score 0.4, TC-score 0.7

TestConformance::test_corrected_scores_equal_the_toolbox_output[B7-unresolvable-surface-case] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[B7-unresolvable-surface-case] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[B7-unresolvable-surface-case]

B8-indirect-no-methods

Indirect method, no temperature methods, no interval depth, no uncertainty

P12 = [Indirect (GTM, BSR, CPD, etc.)], C1 = 70, C37 = 5, C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (pT)], C47 = 30, C11 = [Pressure and temperature considered]

U-score Ux, T-score 0.5, TC-score 0.1, M-score M4x, flags -------, quality code Ux.M4x.-------, missing-information mark, own scores T-score 0.5, TC-score 0.1

TestConformance::test_corrected_scores_equal_the_toolbox_output[B8-indirect-no-methods] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[B8-indirect-no-methods] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[B8-indirect-no-methods]

B9-everything-unspecified

Every scored input recorded as unspecified: largest penalties and no mark

P12 = [Drilling], C1 = 70, C2 = 7, C4 = 100, C5 = 200, C37 = 5, C31 = [Unspecified], C32 = [Unspecified], C41 = [Unspecified], C42 = [Literature or unspecified], C44 = [Unspecified], C45 = [Unspecified], C47 = 1, C11 = [Unspecified]

U-score U2, T-score 0.5, TC-score 0.2, M-score M4, flags -------, quality code U2.M4.-------, no mark, own scores T-score 0.5, TC-score 0.2

TestConformance::test_corrected_scores_equal_the_toolbox_output[B9-everything-unspecified] TestConformance::test_uncorrected_scores_differ_only_where_a_child_rule_changed_them[B9-everything-unspecified] TestSchemeConformance::test_u_m_and_flags_equal_the_toolbox_output[B9-everything-unspecified] TestChildScores::test_the_stored_scores_equal_the_toolbox_output[B9-everything-unspecified]

N1-no-route-other

Exploration method Other: no rules to score by

P12 = [Other], C1 = 70, C2 = 7, C37 = 40, C31 = [LOGeq], C32 = [cLOG], C4 = 100, C5 = 900, C42 = [Actual heat-flow location], C41 = [Core samples], C47 = 30, C44 = [Saturated measured], C45 = [Corrected in-situ (pT)], C11 = [Not considered]

U-score U2, T-score not determined, TC-score not determined, M-score Mx, flags -------, quality code U2.Mx.-------

TestChildScores::test_a_site_with_no_route_leaves_the_sub_scores_not_determined[other]

N2-no-route-empty

Exploration method empty: no rules to score by

C1 = 70, C2 = 7, C37 = 40, C31 = [LOGeq], C32 = [cLOG], C4 = 100, C5 = 900, C42 = [Actual heat-flow location], C41 = [Core samples], C47 = 30, C44 = [Saturated measured], C45 = [Corrected in-situ (pT)], C11 = [Not considered]

U-score U2, T-score not determined, TC-score not determined, M-score Mx, flags -------, quality code U2.Mx.-------

TestChildScores::test_a_site_with_no_route_leaves_the_sub_scores_not_determined[None]

N3-no-measurements

A child with no temperature gradient and no thermal conductivity recorded

C1 = 70, C2 = 7

U-score U2, T-score not determined, TC-score not determined, M-score Mx, flags -------, quality code U2.Mx.-------

TestChildScores::test_a_child_without_a_gradient_or_a_conductivity_is_not_determined

N4-probe-nothing-scored

A probe-sensing child with only its exploration method: nothing to score

P12 = [Probing (onshore, lake, river, etc.)], C1 = 70, C2 = 7

U-score U2, T-score not determined, TC-score not determined, M-score Mx, flags -------, quality code U2.Mx.-------

TestChildScores::test_worked_example[N4-probe-nothing-scored]

N5-borehole-nothing-scored

A borehole child with only its exploration method: nothing to score

P12 = [Drilling], C1 = 70, C2 = 7

U-score U2, T-score not determined, TC-score not determined, M-score Mx, flags -------, quality code U2.Mx.-------

TestChildScores::test_worked_example[N5-borehole-nothing-scored]

F1-every-flag

All seven correction fields recorded (B2 inputs, uncertainty 5 on a value of 50)

P12 = [Drilling], C1 = 50, C2 = 5, C4 = 100, C5 = 900, C37 = 40, C31 = [LOGeq], C32 = [cLOG], C41 = [Core samples], C42 = [Actual heat-flow location], C44 = [Saturated measured], C45 = [Corrected in-situ (pT)], C47 = 30, C11 = [Not considered], C13 = [Present and corrected], C14 = [Present and not corrected], C15 = [Present and not significant], C16 = [Not recognized], C17 = [Present and corrected], C18 = [Present and not corrected], C19 = [Present and corrected]

flags SeXxVcR

TestChildScores::test_every_environmental_correction_writes_its_own_flag

What the examples cover

Every criterion of every part of the scheme has at least one example. Each row names a criterion, and lists how many examples exercise it and the first three.

Criterion

What it covers

Examples

routing.probe-sensing

A child is scored by the probe-sensing rules

3: RT-01, RT-02, RT-03

routing.borehole-and-mine

A child is scored by the borehole and mine rules

8: RT-04, RT-05, RT-06, …

routing.not-determined

No rules apply, so the scores are not determined

5: RT-09, RT-10, RT-11, …

u.bands

The four classes of the coefficient of variation

15: U-01, U-02, U-03, …

u.rounding

The coefficient is rounded to six places

4: U-08, U-09, U-10, …

u.sign

The sign of the value and of the uncertainty is ignored

3: U-16, U-17, P4-clustering-literature

u.not-determined

Value or uncertainty empty or zero

4: U-12, U-13, U-14, …

probe-t.penetration

Probe penetration

7: PT-01, PT-02, PT-03, …

probe-t.recordings

Number of temperature recordings (probe sensing)

6: PT-07, PT-08, PT-09, …

probe-t.water-depth

Water depth

8: PT-12, PT-13, PT-14, …

probe-t.elevation-not-below-sea-level

An elevation at or above sea level has no water depth

4: PT-16, PT-17, PT-18, …

probe-t.tilt

Probe tilt

6: PT-19, PT-20, PT-21, …

probe-t.tilt-waiver

A tilt correction waives the tilt criterion

2: PT-23, P1-probe-with-waivers

probe-t.water-depth-waiver

A bottom-water correction waives the water depth criterion

2: PT-24, P1-probe-with-waivers

probe-tc.location

Conductivity location (probe sensing)

3: PC-01, PC-10, PC-12

probe-tc.saturation

Saturation, method, source and location together

13: PC-01, PC-07, PC-08, …

probe-tc.number

Number of conductivity measurements (probe sensing)

5: PC-01, PC-02, PC-03, …

probe-tc.number-not-scored-for-literature

The number is not scored for a literature location (probe sensing)

2: PC-06, P4-clustering-literature

probe-tc.pT

pT conditions and method (probe sensing)

5: PC-01, PC-13, PC-14, …

borehole-t.continuous-log

Continuous log

4: BT-01, BT-03, X1-continuous-eq, …

borehole-t.continuous-log-needs-more-than-three

A continuous log needs more than three recordings

1: BT-02

borehole-t.single-points

Multiple single points

12: BT-02, BT-04, BT-09, …

borehole-t.surface-plus-one-point

Surface temperature plus one point

6: BT-05, BT-06, BT-07, …

borehole-t.unresolvable-method

Temperature methods that fit no group

3: BT-11, BT-15, B7-unresolvable-surface-case

borehole-tc.gate

No interval depth reported

5: BC-02, BC-03, BC-04, …

borehole-tc.location

Conductivity location (borehole and mine)

2: BC-01, BC-05

borehole-tc.source

Conductivity source

13: BC-01, BC-06, BC-07, …

borehole-tc.number

Number of conductivity measurements (borehole and mine)

4: BC-01, BC-17, BC-18, …

borehole-tc.number-not-scored-for-literature

The number is not scored for a literature location (borehole and mine)

1: B6-tunnelling-literature

borehole-tc.saturation

Saturation (borehole and mine)

8: BC-01, BC-20, BC-21, …

borehole-tc.pT

pT conditions (borehole and mine)

21: BC-01, BC-27, BC-28, …

borehole-tc.pT-agreement

pT conditions must agree with the in-situ correction

13: BC-39, BC-40, BC-41, …

m.classes

The four classes of the product

18: M-01, M-02, M-03, …

m.rounding

The product is rounded to three places

1: M-09

m.mark

The missing-information mark follows the M-score

12: M-10, M-11, M-12, …

m.not-determined

A score that cannot be calculated gives Mx

3: M-13, M-14, M-15

flags.S

Sedimentation flag

4: PF-02, PF-09, P1-probe-with-waivers, …

flags.E

Erosion flag

4: PF-03, PF-10, P1-probe-with-waivers, …

flags.T

Topography flag

4: PF-04, PF-11, P1-probe-with-waivers, …

flags.P

Paleoclimate flag

7: PF-05, PF-12, PF-16, …

flags.V

Surface-temperature variation flag

4: PF-06, PF-13, P1-probe-with-waivers, …

flags.C

Convection flag

3: PF-07, PF-14, F1-every-flag

flags.R

Heat refraction flag

3: PF-08, PF-15, F1-every-flag

flags.not-significant

Present and not significant

1: PF-16

flags.not-recognized

Not recognized

1: PF-17

flags.unspecified

Unspecified

1: P1-probe-with-waivers

flags.empty

No correction recorded

3: PF-01, PF-18, P2-probe-without-corrections

inherited.single-child

A parent with one child

3: IH-02, IH-16, IH-17

inherited.none

A parent with no child it rests on

2: IH-01, IH-20

inherited.u

The poorest U-score

7: IH-03, IH-04, IH-05, …

inherited.m

The poorest M-score

6: IH-07, IH-08, IH-09, …

inherited.flags

The flags of the poorest child

4: IH-12, IH-13, IH-14, …

inherited.tie-on-u

A tie on the U-score is settled by the M-score

1: IH-13

inherited.full-tie

A tie on both scores

2: IH-14, IH-15

inherited.selection

Which children a parent rests on

6: IH-16, IH-17, IH-18, …

missing-information.empty

An empty input takes the largest penalty and the mark

20: PT-18, PT-25, PT-26, …

missing-information.unnamed-field

A field that the row which holds does not name may be empty: the row scores and nothing is missing

4: PC-10, PC-16, PC-17, …

missing-information.unspecified-gives-no-mark

An input recorded as unspecified takes the largest penalty and no mark

5: PC-11, BT-13, BC-26, …

missing-information.gate

No interval depth sets the mark

2: BC-04, X5-interval-gate

missing-information.unresolvable-method

Temperature methods that fit no group set the mark

3: BT-11, BT-15, B7-unresolvable-surface-case

not-determined.u

U-score not determined

7: U-12, U-13, U-14, …

not-determined.t

T-score not determined

5: N1-no-route-other, N2-no-route-empty, N3-no-measurements, …

not-determined.tc

TC-score not determined

5: N1-no-route-other, N2-no-route-empty, N3-no-measurements, …

not-determined.m

M-score not determined

8: M-13, M-14, M-15, …

multi-valued.poorest

A field holding several values takes the poorest

5: PC-12, PC-15, BT-14, …

child.whole

A child scored from its fields to its quality code

6: X1-continuous-eq, P1-probe-with-waivers, P2-probe-without-corrections, …

not-determined.all-empty

Every field the rules read is empty, so the scores are not determined

2: N4-probe-nothing-scored, N5-borehole-nothing-scored