Skip to content

Commit

Permalink
LayerToPlot dataclass for plot_plan
Browse files Browse the repository at this point in the history
StencilType: SolderPaste or Adhesive (default SolderPaste for backwards compatibility)
  • Loading branch information
Wannes Sels committed Sep 24, 2022
1 parent 7942289 commit f8ce693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kikit/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def gerberImpl(boardfile: str, outputdir: str, plot_plan: List[LayerToPlot]=full
pctl.SetLayer(layer_to_plot.id)
suffix = "" if settings["NoSuffix"] else layer_to_plot.name
pctl.OpenPlotfile(suffix, PLOT_FORMAT_GERBER, layer_to_plot.description)
jobfile_writer.AddGbrFile(layer_to_plot.id, os.path.basename(popt.GetPlotFileName()))
jobfile_writer.AddGbrFile(layer_to_plot.id, os.path.basename(pctl.GetPlotFileName()))
if pctl.PlotLayer() == False:
print("plot error")

Expand All @@ -143,7 +143,7 @@ def gerberImpl(boardfile: str, outputdir: str, plot_plan: List[LayerToPlot]=full
pctl.SetLayer(innerlyr)
lyrname = "" if settings["NoSuffix"] else 'inner{}'.format(innerlyr)
pctl.OpenPlotfile(lyrname, PLOT_FORMAT_GERBER, "inner")
jobfile_writer.AddGbrFile(innerlyr, os.path.basename(popt.GetPlotFileName()))
jobfile_writer.AddGbrFile(innerlyr, os.path.basename(pctl.GetPlotFileName()))
if pctl.PlotLayer() == False:
print("plot error")

Expand Down

0 comments on commit f8ce693

Please sign in to comment.