Removed KiCad 6 code from coverage.
This commit is contained in:
parent
d5a31c6d87
commit
9943b82807
|
|
@ -181,7 +181,7 @@ class Layer(Optionable):
|
||||||
elif layer in Layer._pcb_layers:
|
elif layer in Layer._pcb_layers:
|
||||||
ext = [Layer.create_layer(layer)]
|
ext = [Layer.create_layer(layer)]
|
||||||
# Give compatibility for the KiCad 5 default names (automagically renamed by KiCad 6)
|
# Give compatibility for the KiCad 5 default names (automagically renamed by KiCad 6)
|
||||||
elif GS.kicad_version_n >= KICAD_VERSION_5_99 and layer in Layer.KICAD6_RENAME:
|
elif GS.kicad_version_n >= KICAD_VERSION_5_99 and layer in Layer.KICAD6_RENAME: # pragma: no cover (Ki6)
|
||||||
ext = [Layer.create_layer(Layer.KICAD6_RENAME[layer])]
|
ext = [Layer.create_layer(Layer.KICAD6_RENAME[layer])]
|
||||||
elif layer in Layer.DEFAULT_LAYER_NAMES:
|
elif layer in Layer.DEFAULT_LAYER_NAMES:
|
||||||
ext = [Layer.create_layer(layer)]
|
ext = [Layer.create_layer(layer)]
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ class DrillReport(Optionable):
|
||||||
|
|
||||||
|
|
||||||
def get_aux_origin(board):
|
def get_aux_origin(board):
|
||||||
if GS.kicad_version_n >= KICAD_VERSION_5_99:
|
if GS.kicad_version_n >= KICAD_VERSION_5_99: # pragma: no cover (Ki6)
|
||||||
settings = board.GetDesignSettings()
|
settings = board.GetDesignSettings()
|
||||||
return settings.m_AuxOrigin
|
return settings.m_AuxOrigin
|
||||||
return board.GetAuxOrigin()
|
return board.GetAuxOrigin()
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (c) 2020 Salvador E. Tropea
|
# Copyright (c) 2020-2021 Salvador E. Tropea
|
||||||
# Copyright (c) 2020 Instituto Nacional de Tecnología Industrial
|
# Copyright (c) 2020-2021 Instituto Nacional de Tecnología Industrial
|
||||||
# License: GPL-3.0
|
# License: GPL-3.0
|
||||||
# Project: KiBot (formerly KiPlot)
|
# Project: KiBot (formerly KiPlot)
|
||||||
from pcbnew import PLOT_FORMAT_DXF, SKETCH, FILLED
|
from pcbnew import PLOT_FORMAT_DXF, SKETCH, FILLED
|
||||||
|
|
@ -9,7 +9,7 @@ from .drill_marks import DrillMarks
|
||||||
from .gs import GS
|
from .gs import GS
|
||||||
from .misc import KICAD_VERSION_5_99
|
from .misc import KICAD_VERSION_5_99
|
||||||
from .macros import macros, document, output_class # noqa: F401
|
from .macros import macros, document, output_class # noqa: F401
|
||||||
if GS.kicad_version_n >= KICAD_VERSION_5_99:
|
if GS.kicad_version_n >= KICAD_VERSION_5_99: # pragma: no cover (Ki6)
|
||||||
from pcbnew import DXF_UNITS_MILLIMETERS, DXF_UNITS_INCHES
|
from pcbnew import DXF_UNITS_MILLIMETERS, DXF_UNITS_INCHES
|
||||||
else:
|
else:
|
||||||
DXF_UNITS_MILLIMETERS = 1
|
DXF_UNITS_MILLIMETERS = 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue