Commit e7cd37b1 authored by Gregory Harris's avatar Gregory Harris
Browse files

Merge branch 'main' into 16-las-output-from-bulk-data-ingested-in-wellbore-ddms

parents a0002949 26b4156b
......@@ -66,7 +66,7 @@ def welllog_data(
config = Configuration(LocalFileLoader(), config_path)
client = OsduClient(url, token, config.data_partition_id)
service = WellBoreService(client, WellLogService(client))
service = WellLogService(client)
service.ingest_welllog_data(input_path, welllog_id)
......@@ -73,4 +73,5 @@ def welllog_data(url: str,
welllog_data = client.get_welllog_data(welllog_id, curves)
if welllog_data is not None:
......@@ -125,7 +125,11 @@ class OsduClient:
get_welllog_data_url = f"{self._base_url}/api/os-wellbore-ddms/ddms/v3/welllogs/{welllog_id}/data?describe=false{curves_query}"
res = self._send_request("GET", get_welllog_data_url, None, None)
res = self._send_request("GET", get_welllog_data_url, None, None)
except LasLoaderWebResponseError as ex:
logger.warning(f"No curve data found. Error: {str(ex)}")
return None
return read_parquet(io.BytesIO(res.content))
def post_log_recognition(self, mnemonic: str, unit: str) -> any:
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