We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b0fd12a + 4409e8c commit d55ddf0Copy full SHA for d55ddf0
pyxrf/model/load_data_from_db.py
@@ -2360,6 +2360,12 @@ def map_data2D_srx_new_tiled(
2360
fast_pos = data_stream0[fast_key]
2361
slow_pos = data_stream0[slow_key]
2362
else:
2363
+ # Compute the number of actually existing rows in case the scan was interrupted
2364
+ if d_xs_sum is not None:
2365
+ slow_pts = d_xs_sum.shape[0]
2366
+ elif d_xs2_sum is not None:
2367
+ slow_pts = d_xs2_sum.shape[0]
2368
+
2369
row_pos_fast = da.arange(fast_pts) * fast_step + fast_start
2370
fast_pos = da.broadcast_to(row_pos_fast, (slow_pts, fast_pts))
2371
if snaking_enabled:
0 commit comments