Production Helpers
- class timeatlas.production.ProductionContext[source]
Bases:
objectConvenience bundle for a dataset production configuration.
- config_path: Path
- uuid_manager: UUIDManager
- time_range: RDETimeRange
- classmethod from_config(config_path)[source]
Load a dataproduction config and derive common production values.
- Parameters:
- Return type:
- __init__(config_path, config, uuid_manager, dataset_slug, dataset_id, time_range)
- Parameters:
config_path (Path)
uuid_manager (UUIDManager)
dataset_slug (str)
dataset_id (str)
time_range (RDETimeRange)
- Return type:
None
- timeatlas.production.csv_seed(row, cols, suffix='')[source]
Return the legacy CSV-serialized UUID seed for selected row columns.
- timeatlas.production.datetime_from_int(date_val, match_to_end=False)[source]
Convert an integer/string date (YYYYMMDD or YYYY) to ISO-8601.
- timeatlas.production.find_latest_file(prefix, ext)[source]
Return the lexically latest recursive match for
<prefix>*.<ext>.
- timeatlas.production.find_layer_uuid(layer_fp, slug_part)[source]
Return the unique layer UUID whose slug contains slug_part.
- timeatlas.production.get_area_uuids(area_locs)[source]
Read the first RDE UUID from each area ingestion file.