compass.utilities.finalize#

COMPASS utilities for finalizing a run directory

Module attributes

QUALITATIVE_UNITS

units value used to mark a qualitative ordinance row

MAX_ORDINANCE_TEXT_CHARS

Max characters kept in the ordinance_text column

Functions

compile_collection_summary_message(...)

Compile a short collection summary message

compile_run_summary_message(total_seconds, ...)

Create a human-readable summary of a completed run

doc_infos_to_db(doc_infos, output_columns)

Aggregate parsed ordinance CSV files into a normalized database

save_db(db, out_dir, output_columns)

Write the combined ordinance output to disk

save_run_meta(dirs, tech, start_date, ...[, ...])

Persist metadata describing an ordinance collection run

trim_ordinance_text(db)

Trim the ordinance_text column to a maximum character count