fix_drillholes
builtin
¶
fix_drillholes(
flags,
tables,
*,
missing="drop",
duplicates="drop",
inverted="drop",
out_of_range="drop",
overlaps="keep_first",
sentinels="null",
deviation="drop",
no_collar="drop",
past_depth="keep",
dip_sign="keep",
id_mismatch="rename",
text_values="null",
)
Tables cleaned by the flags of check_drillholes, one rule per check.
Rows are dropped where any check whose rule drops is flagged; gap,
no_survey and no_<name> are informational and change nothing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
flags
|
mapping of str to Table
|
The flags returned by |
required |
tables
|
mapping of str to table
|
The checked tables under the same names, e.g. |
required |
missing
|
(drop, keep)
|
Rule for each check. A duplicate is the later row, so dropping keeps
the first. Dropping both stations flagged around one wrong survey
station also drops a good one. |
"drop"
|
duplicates
|
(drop, keep)
|
Rule for each check. A duplicate is the later row, so dropping keeps
the first. Dropping both stations flagged around one wrong survey
station also drops a good one. |
"drop"
|
inverted
|
(drop, keep)
|
Rule for each check. A duplicate is the later row, so dropping keeps
the first. Dropping both stations flagged around one wrong survey
station also drops a good one. |
"drop"
|
out_of_range
|
(drop, keep)
|
Rule for each check. A duplicate is the later row, so dropping keeps
the first. Dropping both stations flagged around one wrong survey
station also drops a good one. |
"drop"
|
deviation
|
(drop, keep)
|
Rule for each check. A duplicate is the later row, so dropping keeps
the first. Dropping both stations flagged around one wrong survey
station also drops a good one. |
"drop"
|
no_collar
|
(drop, keep)
|
Rule for each check. A duplicate is the later row, so dropping keeps
the first. Dropping both stations flagged around one wrong survey
station also drops a good one. |
"drop"
|
past_depth
|
(drop, keep)
|
Rule for each check. A duplicate is the later row, so dropping keeps
the first. Dropping both stations flagged around one wrong survey
station also drops a good one. |
"drop"
|
overlaps
|
(keep_first, keep)
|
|
"keep_first"
|
sentinels
|
(null, drop, keep)
|
|
"null"
|
dip_sign
|
(keep, negate)
|
|
"keep"
|
id_mismatch
|
(rename, keep)
|
|
"rename"
|
text_values
|
(null, half, limit, keep)
|
Unless |
"null"
|
Returns:
| Name | Type | Description |
|---|---|---|
tables |
dict of str to Table
|
The cleaned tables, under the same names. |
log |
Table
|
|
used in