File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -128,10 +128,10 @@ Plots cross-section of individual coils
128
128
129
129
r = T[]
130
130
z = T[]
131
- for (k,element) in enumerate (coil. element)
131
+ for (k, element) in enumerate (coil. element)
132
132
oute = outline (element)
133
133
@series begin
134
- primary := k== 1
134
+ primary := k == 1
135
135
oute
136
136
end
137
137
append! (r, oute. r)
@@ -786,6 +786,12 @@ Plot build cross-section
786
786
if l. type == Int (_gap_)
787
787
name = " "
788
788
color = :white
789
+ elseif l. type == Int (_oh_)
790
+ if l. side == _in_
791
+ color = :gray
792
+ else
793
+ color = :white
794
+ end
789
795
elseif l. type == Int (_tf_)
790
796
color = :green
791
797
elseif l. type == Int (_shield_)
@@ -881,7 +887,11 @@ Plot build cross-section
881
887
elseif l. type == Int (_gap_)
882
888
color --> :white
883
889
elseif l. type == Int (_oh_)
884
- color --> :gray
890
+ if l. side == _in_
891
+ color --> :gray
892
+ else
893
+ color --> :white
894
+ end
885
895
elseif l. type == Int (_tf_)
886
896
color --> :green
887
897
elseif l. type == Int (_shield_)
You can’t perform that action at this time.
0 commit comments