Skip to content

Commit 89f290d

Browse files
authored
Merge pull request #342 from jgray-19/plot_updates
Plotting Fix
2 parents ded0709 + 0cd2f97 commit 89f290d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/madl_plot.mad

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,9 @@ local function layout_process_in (param, pseq)
557557
idx = idx + 1
558558
elseif line.slc == 1 and elm.kind == "rbend" then -- Patch to bline, rbend bline should go through the magnet center
559559
shift[1] = srv[i-1].x
560+
elseif elm.is_patch and line.slc == -2 then -- Patches don't have a slc 0
561+
data[idx] = {line.__map, shift}
562+
idx = idx + 1
560563
end
561564
end
562565

0 commit comments

Comments
 (0)