Skip to content

Commit a4e92f5

Browse files
alskdjlkj
1 parent a04678c commit a4e92f5

File tree

1 file changed

+8
-2
lines changed
  • backend/src/backend/user_session/routers/surface

1 file changed

+8
-2
lines changed

backend/src/backend/user_session/routers/surface/router.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,23 @@ async def well_intersection_reals_from_user_session(
7777
# surfaces = [
7878
# xtgeo.surface_from_file(bytestr, fformat="irap_binary") for bytestr in bytesios
7979
# ]
80+
init_surf = xtgeo.surface_from_file(bytesios[0], fformat="irap_binary")
8081
elapsed_xtgeo = timer.lap_s()
8182

8283
# surfaces2 = [
83-
# _import_irap_binary_purepy(xtgeofile, values=True) for xtgeofile in xtgeofiles
8484
# ]
85+
surfaces = []
86+
header = None
8587

8688
for idx, byteio in enumerate(bytesios):
8789
byteio.seek(0)
8890
buf = byteio.read()
89-
header = read_header(buf)
91+
if idx == 0:
92+
header = read_header(buf)
93+
9094
values = read_values_optimized(header, buf)
95+
# values = read_values_optimized(header, buf)
96+
surfaces.append(init_surf.copy())
9197
surfaces[idx].values = values
9298
del buf
9399

0 commit comments

Comments
 (0)