code refactoring
This commit is contained in:
@@ -5,7 +5,7 @@ from helix.constants.panel_type import PanelType
|
||||
|
||||
|
||||
class DualTilt128CellConstants(object):
|
||||
scaling_factor = 1.1 #require 10% additional space for panel spacing
|
||||
tolerance = 0.1 #require 10% additional space for panel spacing
|
||||
panel_spacing = (88.24, 82.0) # inches
|
||||
spacing_size_inches = 5.12 # This is inches
|
||||
presenter_spacing = (1.5, 1.5)
|
||||
|
||||
@@ -5,7 +5,7 @@ from helix.constants.panel_type import PanelType
|
||||
|
||||
|
||||
class DualTilt96CellConstants(object):
|
||||
scaling_factor = 1.1 #require 10% additional space for panel spacing
|
||||
tolerance = 0.1 #require 10% additional space for panel spacing
|
||||
panel_spacing = (88.24, 62.0) # inches
|
||||
spacing_size_inches = 5.12 # This is inches
|
||||
presenter_spacing = (1.5, 1)
|
||||
|
||||
@@ -5,7 +5,7 @@ from helix.constants.panel_type import PanelType
|
||||
|
||||
|
||||
class DualTiltPSeriesConstants(object):
|
||||
scaling_factor = 1.1 #require 10% additional space for panel spacing
|
||||
tolerance = 0.1 #require 10% additional space for panel spacing
|
||||
panel_spacing = (88.24, 82.0) # inches
|
||||
spacing_size_inches = 8.8503937 # This is inches
|
||||
presenter_spacing = (1.5, 1.5)
|
||||
|
||||
@@ -8,7 +8,7 @@ from helix.constants.system_type_constants.single_tilt_constants import SingleTi
|
||||
|
||||
|
||||
class SingleTilt128CellConstants(object):
|
||||
scaling_factor = 1.1 #require 10% additional space for panel spacing
|
||||
tolerance = 0.1 #require 10% additional space for panel spacing
|
||||
panel_spacing = (82.0, 60.0) # inches
|
||||
presenter_spacing = (1.5, 1)
|
||||
panel_area = 23.29
|
||||
|
||||
@@ -7,7 +7,7 @@ from helix.constants.system_type_constants.single_tilt_constants import SingleTi
|
||||
|
||||
|
||||
class SingleTilt96CellConstants(object):
|
||||
scaling_factor = 1.1 #require 10% additional space for panel spacing
|
||||
tolerance = 0.1 #require 10% additional space for panel spacing
|
||||
panel_spacing = (62.0, 60.0) # inches
|
||||
presenter_spacing = (1, 1)
|
||||
panel_area = 17.58
|
||||
|
||||
@@ -7,7 +7,7 @@ from helix.constants.system_type_constants.single_tilt_constants import SingleTi
|
||||
|
||||
|
||||
class SingleTiltPSeriesConstants(object):
|
||||
scaling_factor = 1.1 #require 10% additional space for panel spacing
|
||||
tolerance = 0.1 #require 10% additional space for panel spacing
|
||||
panel_spacing = (82.0, 61.8755) # inches
|
||||
presenter_spacing = (1.5, 1)
|
||||
panel_area = 22.22
|
||||
|
||||
@@ -79,7 +79,7 @@ class CsvInputValidator(object):
|
||||
def validate_for_spacing(self, headers, rows):
|
||||
try:
|
||||
min_spacing = self.user_values.module_system_constants().panel_spacing
|
||||
scaling_factor = self.user_values.module_system_constants().scaling_factor
|
||||
scaling_factor = self.user_values.module_system_constants().tolerance + 1
|
||||
min_spacing = (min_spacing[0]*scaling_factor, min_spacing[1]*scaling_factor)
|
||||
|
||||
for row_index, row in enumerate(rows):
|
||||
|
||||
Reference in New Issue
Block a user