added break error to flag grids where sx = an odd number.

This commit is contained in:
John Henry Beale
2026-05-18 08:34:30 +02:00
parent 22e5938b7c
commit 1d819d38ed
+5 -2
View File
@@ -82,6 +82,8 @@ class HitReturnSim:
px,py=g['pitch'] #pitch to next position in um (or 1 if scaled)
nx,ny=g['count'] #total count of wells
sx,sy=kwargs['ssz'] #section size (in wells)
if sx % 2 != 0:
raise ValueError(f"mode 6 and 7 requires even number x rows, got sx={sx}")
try:
tsx, tsy=kwargs['smv'] # time(in num of shots) to move to next section (horiz/vert)
except KeyError as e:
@@ -90,7 +92,8 @@ class HitReturnSim:
try:
tsd=kwargs['sdelay']
except KeyError as e:
tsd=sx*sy
tsd=sx*sy
tsd+=1-sx*sy # sdl are shots to wait at position #(6)
tx,ty=nx//sx,ny//sy #total sections
@@ -268,4 +271,4 @@ if __name__=='__main__':
#dp=DebugPlot('/tmp/shapepath.npz');dp.plot_gather(mode=11);plt.show()
#exit(0)
#ssh_test()
ret=parse_args()
ret=parse_args()