Skip to content

Commit

Permalink
Fixed margin bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jmp1985 committed May 14, 2024
1 parent 33f6b2f commit 7a1c222
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/parakeet/simulate/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,11 @@ def callback(z0, z1, V):
% (z0, z1, index)
)
if index < out.data.shape[0]:
out.data[index, :, :] = V[margin:-margin, margin:-margin].T
x0 = margin
y0 = margin
x1 = V.shape[1] - margin
y1 = V.shape[0] - margin
out.data[index, :, :] = V[y0:y1, x0:x1].T

# Run the simulation
if masker is not None:
Expand Down

0 comments on commit 7a1c222

Please sign in to comment.