Reduced complexity

This commit is contained in:
Diego Capusotto 2021-12-21 13:01:17 -03:00
parent e07f45bd2d
commit 7894e9b45e
1 changed files with 1 additions and 5 deletions

View File

@ -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 = []