Skip to content

Commit

Permalink
Explore extras
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKallekleiv committed Nov 18, 2023
1 parent 82508ea commit 5cf262e
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions backend/src/services/sumo_access/surface_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,18 @@ async def get_realization_surface_data_async(
et_xtgeo_read_ms = timer.lap_ms()

size_mb = byte_stream.getbuffer().nbytes / (1024 * 1024)
LOGGER.debug(
f"Got realization surface from Sumo in: {timer.elapsed_ms()}ms ("
f"locate={et_locate_ms}ms, "
f"download={et_download_ms}ms, "
f"xtgeo_read={et_xtgeo_read_ms}ms) "
f"[{xtgeo_surf.ncol}x{xtgeo_surf.nrow}, {size_mb:.2f}MB] "
f"({addr_str})"

LOGGER.info(
f"Got realization surface from Sumo",
extra={
"service": "sumo",
"operation": "get_realization_surface_data",
"elapsed_ms_total": timer.elapsed_ms(),
"elapsed_ms_locate": et_locate_ms,
"elapsed_ms_download": et_download_ms,
"elapsed_ms_xtgeo_read": et_xtgeo_read_ms,
"size_mb": size_mb,
},
)

return xtgeo_surf
Expand Down

0 comments on commit 5cf262e

Please sign in to comment.