From 7894e9b45e391e3e828c95965c59a8ea69cdcdf1 Mon Sep 17 00:00:00 2001 From: Diego Capusotto Date: Tue, 21 Dec 2021 13:01:17 -0300 Subject: [PATCH] Reduced complexity --- kibot/out_position.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kibot/out_position.py b/kibot/out_position.py index 575a9480..8a09344c 100644 --- a/kibot/out_position.py +++ b/kibot/out_position.py @@ -217,11 +217,7 @@ class PositionOptions(VariantOptions): output_dir = os.path.dirname(fname) columns = self.columns.values() # Note: the parser already checked the units are milimeters or inches - conv = 1.0 - if self.units == 'millimeters': - conv = 1.0 / IU_PER_MM - else: # self.units == 'inches': - conv = 0.001 / IU_PER_MILS + conv = 1.0/IU_PER_MM if self.units == 'millimeters' else 0.001/IU_PER_MILS # Format all strings comps_hash = self.get_refs_hash() modules = []