File tree 1 file changed +8
-2
lines changed
backend/src/backend/user_session/routers/surface
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -77,17 +77,23 @@ async def well_intersection_reals_from_user_session(
77
77
# surfaces = [
78
78
# xtgeo.surface_from_file(bytestr, fformat="irap_binary") for bytestr in bytesios
79
79
# ]
80
+ init_surf = xtgeo .surface_from_file (bytesios [0 ], fformat = "irap_binary" )
80
81
elapsed_xtgeo = timer .lap_s ()
81
82
82
83
# surfaces2 = [
83
- # _import_irap_binary_purepy(xtgeofile, values=True) for xtgeofile in xtgeofiles
84
84
# ]
85
+ surfaces = []
86
+ header = None
85
87
86
88
for idx , byteio in enumerate (bytesios ):
87
89
byteio .seek (0 )
88
90
buf = byteio .read ()
89
- header = read_header (buf )
91
+ if idx == 0 :
92
+ header = read_header (buf )
93
+
90
94
values = read_values_optimized (header , buf )
95
+ # values = read_values_optimized(header, buf)
96
+ surfaces .append (init_surf .copy ())
91
97
surfaces [idx ].values = values
92
98
del buf
93
99
You can’t perform that action at this time.
0 commit comments