Commit 0d2bc141 authored by Niall McDaid's avatar Niall McDaid
Browse files

Add logging to make operations clearer

parent 6eacba44
Pipeline #72691 passed with stage
in 41 seconds
......@@ -35,10 +35,15 @@ def convert(input_path: str, config_path: str, wellbore_id: str):
config = Configuration(LocalFileLoader(), config_path)
mapper = LasToRecordMapper(las_data, config)
logger.info("Mapping LAS file to wellbore and well log records.")
wellbore_record = mapper.map_to_wellbore_record()
welllog_record = mapper.map_to_well_log_record(wellbore_id)
path = Path(input_path)
writer = JsonToFile()
logger.info("Writing wellbore and well log records to JSON files.")
writer.write(vars(wellbore_record), path.with_suffix('.wellbore.json'))
logger.warning(f"Wellbore record file created: {path.with_suffix('.wellbore.json')}")
writer.write(vars(welllog_record), path.with_suffix('.welllog.json'))
logger.warning(f"Well log record file created: {path.with_suffix('.welllog.json')}")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment